Message4988

Author gschenke
Recipients gschenke
Date 2009-08-05.10:22:51
SpamBayes Score 7.06313e-09
Marked as misclassified No
Message-id <1249467772.51.0.200046086124.issue1422@psf.upfronthosting.co.za>
In-reply-to
Content
I used the jython_installer_2.5.0.jar to create a standalone jython.jar.
Started a script that needs a java-class from an external jar with:
java -classpath myjavacode.jar:jython.jar org.python.util.jython myscript.py
The myjavacode.jar is not loaded and the script fails with 
ImportError: No module named mymodule

bash-3.00$ java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode)

bash-3.00$ uname -a
SunOS spare01 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Fire-V440

BTW: On Linux the same command works as expected, although i noticed
something strange when trying to use org.apache.log4j.BasicConfigurator
"import org.apache.log4j.BasicConfigurator" works on linux, not on
solaris (both use standalone jython.jar)
"import org.apache" does NOT work on linux or solaris (standalone) but
does work if using an installed version of jython...
History
Date User Action Args
2009-08-05 10:22:52gschenkesetrecipients: + gschenke
2009-08-05 10:22:52gschenkesetmessageid: <1249467772.51.0.200046086124.issue1422@psf.upfronthosting.co.za>
2009-08-05 10:22:52gschenkelinkissue1422 messages
2009-08-05 10:22:51gschenkecreate