Thanks for the quick reply. Are you saying I should instead pack the
Lib directory as a jar within the larger application jar? Or must they
remain two separate Jar files? For some reason Eclipse takes the
static Jython.jar file I have and then overlays it (ie intermingles it
contents with) my application's Jar.
Make it a separate jar. A jar within a jar would make even less sense.
I am still really struggling with how to
control my system
path when packaging a Java/Jython application into a single jar. For
some reason it does not see the Lib directory (contained within the
Jar) and all attempts to add Lib to the sys.path fail (presumably
because it is looking for that on the local file system and not within
the jar). I've also tried adding the name of the jar itself
myjar.jar\\Lib to the path also without success. How do I add a
directory *within* a jar to the path of a PythonInterpreter?
The only way would be to use a special class loader, which is a lot
harder than just packaging the Lib directory as its own jar file.