Java classpath issues
I'm having trouble getting my program to run from the command line. I'm
executing it from the src folder and the files are stored in the package
proj2.
So when I run java -cp "proj2/*;proj2/antlr-3.5.jar" proj2.myClass
I receive an "Error: Could not find or load main class"
If I remove the classpath and just write java proj2.myClass
I get the java.lang.NoClassDefFoundError
How can I run the program using the classpaths correctly?
No comments:
Post a Comment