Smart Dashboard and Shuffleboard Crash on Launch

Opening shuffleboard or smartdashboard from the driver station or from the jar doesn’t work. Opening them from the command line gives an error. How do I fix this?

Here are the error messages.

SmartDashboard Error: https://pastebin.com/ynq4N54Q
ShuffleBoard Error: https://pastebin.com/e52CzEDe

Uninstall Java 9 and install Java 8. The WPILib desktop tools do not work with Java 9.

If you’re using this computer for Java development, the JDK can be downloaded here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
If you’re only running the dashboard, you can download the JRE here: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html