How jar java program?
Hi! All,
I have a three files (theclass.class, MyXMLHandler.class & config.properties), right now I need jar those files for Java Service Wrapper application.
So ....
jar cvf theclass.class, MyXMLHandler.class & config.properties
jar xf MyApp.jar META-INF/MANIFEST.MF
vim META-INF/MANIFEST.MF
Main-Class: theclass
jar ufm MyApp.jar META-INF/MANIFEST.MF
it can't be work, it prompted "Fail to create database connection: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"!
BUT if I run directly theclass.class, it do not have this problem.
I checked with classpath for mysql-connector-java-3.1.10-bin.jar, I think it have no problem.
WHy??
Thks
|