Class not found despite classpath in MANIFEST
I have this jar:
/mybundle.jar/
de/mybundle/myclass.class
lib/mysql.jar
META-INF/MANIFEST.MF
With the next MANIFEST.MF
Manifest-Version: 1.0
Class-Path: lib/mysql.jar
Main-Class: de.mybundle.myclass
Everything seems perfectly correct to me, but when I run
java -jar mybundle.jar
I am getting a NoClassDefFoundException when a class tries to instantiate one of the MySQL library classes.
What have I done wrong?
+3
source to share