I'm working on a java project and trying to run a jar file. I'm getting the error:
Exception in thread "main" java.lang.NoClassDefFoundError
Most of the other threads I've read, said that it was because I needed to use the -classpath
option. However, I've tried implementing this a couple of ways and I'm getting the same error, still.
The last way that I tried to implement the -classpath
option and execute the jar file is shown below.
java -classpath "/full/file/path/file.jar" -jar file.jar
Please let me know what I'm doing wrong!