Enigma icon indicating copy to clipboard operation
Enigma copied to clipboard

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

Open daeeros opened this issue 3 years ago • 1 comments

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

daeeros avatar Jul 17 '22 10:07 daeeros

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.

sciwhiz12 avatar Jul 17 '22 13:07 sciwhiz12