mattwright324 / windows-smb-cracker

Crack Windows logins remotely through SMB/CIFS
MIT License
12 stars 3 forks source link

Main Class not found #2

Closed GreatGodOfFire closed 5 years ago

GreatGodOfFire commented 5 years ago

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.

mattwright324 commented 5 years ago

The jar requires Java 8 and JavaFX, what version of Java do you have installed?

GreatGodOfFire commented 5 years ago

I have openjdk 1.8.0_222

GreatGodOfFire commented 5 years ago

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.

GreatGodOfFire commented 5 years ago

Now I installed JDK 1.8.0 and it works :).

mattwright324 commented 5 years ago

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.

mattwright324 commented 5 years ago

Closing since you said it works