Unable to run a Java program from shell ClassNotFoundException
<p>I am trying to run a Java program from the bash shell.
The program uses some 3rd party libs (mysql connector , amazon aws)</p>

<p>This is just a standard java program , not running on a J2EE server or anything complicated.</p>

<p>It always complains that it cannot find one of the classes in the third party libs (ClassNotFoundException) (If I remove references to this then it will complain about a different one).</p>

<p>This is confusing since I have checked that the location of the jar files containing the libs is in the classpath. I have also tried putting the libs in the same folder as the .class File I am trying to run to no avail.</p>

<p>I compiled the program using the javac command on the same computer and it had no problems finding the libraries , so I am confused as to why it cannot find them at runtime..</p>

<p>I also tried this from cmd under windows but got the same problem.</p>

<p>The only rational explaination I can find is that it is due to security restrictions in the JVM , in which case it would be good to know how to disable them for this program?</p>

<p>Thanks</p>
