Thursday, 15 March 2007

The JAR's in Charge

Just a short reminder.

If you load a class from a jar file, then the classpath is whatever the jar file manifest says it is, not what your JVM thinks it is.

So use the Class-Path directive in the Manifest file, and remember that the items appearing in that directive are relative to the location of the JAR file itself.

No comments: