I would like to run my java class with cmd command. So, I have the next structure:
..
lib/org.json.jar
src/main/java/Parser.java
Now, after maven build I have some folders in the target:
classes/parser.class
lib/org.json.org
So, now I trying to execute the next command:
java - cp package.report
But I have the next error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
I trying execute also this command :
java -cp "org.json.jar" package.report
and got this error:
Error: Could not find or load main class package.report
What am I doing wrong?