I wish I could have two jars but unfortunately I am using Jython as part of a rather involved client-server system which pushes out individual "helper" Jars.  They really need to be self-contained and I am confused how Jython.jar can see its own Lib directory (contained within the Jar) but my application Jar can't accomplish the same thing.

2009/12/15 Alex Grönholm <alex.gronholm@nextday.fi>
15.12.2009 22:01, Brian Merrell kirjoitti:
Alex,

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.


-brian

2009/12/15 Alex Grönholm <alex.gronholm@nextday.fi>
15.12.2009 21:12, Brian Merrell kirjoitti:
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.

-brian
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Jython-users mailing list Jython-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jython-users


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users