Message9591

Author sergei175
Recipients sergei175
Date 2015-03-08.15:41:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425829266.74.0.319833275387.issue2281@psf.upfronthosting.co.za>
In-reply-to
Content
Hello,
 
 I'm not sure is this an issue or not. But I was trying to do something obvious in Jython 2.7b4: Create a jar file "Lib.jar" from the directory "Lib" with PYTHON modules, add it to class path, and run jython as: "java -cp Lib.jar:jython.jar org.python.util.jython" or similar.

It gives an error: "main Exception in thread "main" ImportError: No module named site" I was using in the past this project:
https://github.com/noskcid/Single-Jar-Jython-Further-Example/tree/master/lib

which deploys jython as 2 separate files: core and python libraries in jar file. I've founs this method is very useful: I have 2 compressed files, and I still use "*" to pick up methods of my external java libraries (which is impossible when using jython as a single jar file with python modules inside).

How can I compress "Lib" directory in a jar, and deploy Jython as 2 jar files?

I also think this should be useful option during Jython installation

best, Sergei
History
Date User Action Args
2015-03-08 15:41:06sergei175setrecipients: + sergei175
2015-03-08 15:41:06sergei175setmessageid: <1425829266.74.0.319833275387.issue2281@psf.upfronthosting.co.za>
2015-03-08 15:41:06sergei175linkissue2281 messages
2015-03-08 15:41:05sergei175create