Knute said:
So say I have an app in a jar, test.jar. I set the classpath in
test.man to '.'. It still won't find my resource in the current
directory. Does the classpath have to be another jar file?
Thanks,
Your MANIFEST.MF file in the JAR file should specify the classpath. What
is test.man in your example?? Build your JAR file with a MANIFEST.MF
that looks something like this:
Manifest-Version: 1.0
Main-Class: org/myorg/myapp/gui/MyApp
Class-Path: lib/myapp1.jar lib/myapp2.jar
Do not include an extra line after Class-Path. If you put your path as
another path entry it should work. Resources for a JAR file should be
inside the actual JAR file so everything is packaged into a single bundle.