I am trying to add a dependent library when running the java code like:
javac -cp "/temp/package.jar" myRunningCode.java
java -cp "/temp/package.jar" myRunningCode
The first line compiling works well.
But the 2nd line gave me the error message:
Error: Could not find or load main class myRunningCode
'
So anyone can help me with this problem?
Thanks a lot!