L
Luis Angel Fdez. Fdez.
Hi!
I have two .class files I want to put into a .jar file. I'm using an
external .jar (derby database) file.
If I run the app like java -cp .:derby.jar app it works.
Then if I make a jar file with app.class and other.class...
jar -c -f MyJar.jar META-INF/MANIFEST.MF app.class other.class
where MANIFEST.MF has...
Manifest-Version: 1.0
Main-Class: app
Then java -jar -cp .:derby.jar MyJar.jar doesn't work... It's not able
to load the jdbc driver.
I tried, I don't know if it's right, to put derby.jar into MyJar.jar
and added: Class-Path: derby.jar to manifest file, but I get the same
error message.
What am I doing wrong?
Thanks in advance.
Bye!
I have two .class files I want to put into a .jar file. I'm using an
external .jar (derby database) file.
If I run the app like java -cp .:derby.jar app it works.
Then if I make a jar file with app.class and other.class...
jar -c -f MyJar.jar META-INF/MANIFEST.MF app.class other.class
where MANIFEST.MF has...
Manifest-Version: 1.0
Main-Class: app
Then java -jar -cp .:derby.jar MyJar.jar doesn't work... It's not able
to load the jdbc driver.
I tried, I don't know if it's right, to put derby.jar into MyJar.jar
and added: Class-Path: derby.jar to manifest file, but I get the same
error message.
What am I doing wrong?
Thanks in advance.
Bye!