This content has been marked as final. Show 3 replies
When you use "-jar" any user settings of the classpath are ignored. Everything has to be specified within the jar archive itself.
Jars have a "manifest" which lets you do this. ProcessBigDump_fat.jar will already have a manifest: it has to in order to specify the main class. There will be a line like:
Main-Class: myapp.Main(Assuming the class with the static main() method was Main and it was part of the myapp package.)
What you have to do is add another line something like:
Class-Path: mysql-connector-java-5.1.6-bin.jarwhich will use the mysql jar (located in the same place as your jar) as part of the classpath.
Details in Sun's Tutorial.