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:
ShuffleBoard Error:

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:
If you’re only running the dashboard, you can download the JRE here: