Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Unable to initialize main class cuchaz.enigma.gui.Main #454

Open
daeeros opened this issue Jul 17, 2022 · 1 comment
Open

Error: Unable to initialize main class cuchaz.enigma.gui.Main #454

daeeros opened this issue Jul 17, 2022 · 1 comment

Comments

@daeeros
Copy link

daeeros commented Jul 17, 2022

C:\Users\root\Desktop>java -jar enigma-swing-2.1.0.jar
Error: Unable to initialize main class cuchaz.enigma.gui.Main
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException

I try run compiled, version, but i getting this error, how can i fix it?

I have jdk-17.0.3

@sciwhiz12
Copy link

You'll need to download and use the enigma-swing JAR with the -all classifier/suffix, as that contains (via shading) all the requisite dependencies. When using the regular JAR (without the -all classifier), you have to provide all the dependencies via the classpath.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants