Comment 1 for bug 1013622

Revision history for this message
Ralf Claussnitzer (ralf-claussnitzer-deactivatedaccount) wrote :

Nasty class loading issue here. :-/ It appears that the Class-Path manifest value is never used to load resources form inside the jar. See: http://docs.oracle.com/javase/tutorial/deployment/jar/downman.html

"Note: The Class-Path header points to classes or JAR files on the local network, not JAR files within the JAR file or classes accessible over internet protocols. To load classes in JAR files within a JAR file into the class path, you must write custom code to load those classes. For example, if MyJar.jar contains another JAR file called MyUtils.jar, you cannot use the Class-Path header in MyJar.jar's manifest to load classes in MyUtils.jar into the class path. "

Special class loading has to be implemented to make it work like expected. Until then one has to provide the extracted libraries near the jar.

NOTE: Eclipse "Standalone CLI" builds use a custom mechanism to run those kind of JARed applications.