I tried to compile my java file with an external jar in Ubuntu 14.04.
It works fine after I compile:
jeremy@Ubuntu:~/Desktop/project/src$ javac -classpath lib/jsch.jar MyFile.java
but I have the following error when I tried to run:
jeremy@Ubuntu:~/Desktop/project/src$ java -classpath lib/jsch.jar MyFile Error: Could not find or load main class MyFile