Message9591
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 |
|
Date |
User |
Action |
Args |
2015-03-08 15:41:06 | sergei175 | set | recipients:
+ sergei175 |
2015-03-08 15:41:06 | sergei175 | set | messageid: <1425829266.74.0.319833275387.issue2281@psf.upfronthosting.co.za> |
2015-03-08 15:41:06 | sergei175 | link | issue2281 messages |
2015-03-08 15:41:05 | sergei175 | create | |
|