Closed GreatGodOfFire closed 5 years ago
The jar requires Java 8 and JavaFX, what version of Java do you have installed?
I have openjdk 1.8.0_222
Now I installed JDK 13.0.1, but now I have the error: Error: Could not find or load main class mattw.cracker.smb.Cracker Caused by: java.lang.NoClassDefFoundError: javafx/application/Application.
Now I installed JDK 1.8.0 and it works :).
OpenJDK does not include JavaFX by default like OracleJDK does. You'll have to install openjfx 8 as well.
Since you are on 16.04, I'm not certain how it will behave but you may be able to just do sudo apt install openjfx
and be good to go. I was using 19.04 and openjfx installs version 11 which is incompatible with OpenJDK 8 and required additional steps to get.
Sounds like you just installed OracleJDK? That or openjfx would be valid solutions.
Closing since you said it works
I have Ubuntu 16.04 and if I want to run the Jar, it doesn't work. the output is: Error: Could not find or load main class mattw.cracker.smb.Cracker.