I am trying to run a Java program from the bash shell. The program uses some 3rd party libs (mysql connector , amazon aws)
This is just a standard java program , not running on a J2EE server or anything complicated.
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).
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.
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..
I also tried this from cmd under windows but got the same problem.
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?
Thanks