[kaffe] Odd Jython/jar behaviour
Vesa Kaihlavirta
vpkaihla@cc.jyu.fi
Mon Jan 6 09:59:03 2003
Here is what happens when trying to run jython with the newest kaffe-cvs
(includes Dalibor's latest addings -- though they aren't the cause, this
happened with earlier cvs-versions as well).
vegai@kontu gzz $ make jython
Tempfile is /tmp/fileVMGn2R
java -Xms64M -Xmx128M
-Dpython.path=depends/jythonlib.jar:depends/pythonlib.jar:depends/yaml.jar:depends/docutils.jar
-Dpython.verbose=message -Duser.editor=/bin/nano org.python.util.jython
Error: Unrecognized JVM specific option `-Xms64M'.
Error: Unrecognized JVM specific option `-Xmx128M'.
*sys-package-mgr*: processing modified jar, '/usr/local/kaffe/jre/lib/rt.jar'
*sys-package-mgr*: skipping bad jar, '/usr/local/kaffe/jre/lib/rt.jar'
Jython 2.1 on java1.1.x-cvs (JIT: kaffe.jit)
Traceback (innermost last):
File "javaos.py", line 27, in ?
ImportError: No module named io
Traceback (innermost last):
File "site.py", line 67, in ?
ImportError: no module named javaos
>>>
Kaffe's rt.jar is skipped by jython for some reason. This behaviour doesn't
occur in other VM's, nor with kaffe-1.07. The skipping is reported in
jython's org/python/core/CachedJarsPackageManager.java (URL), in the method
private void addJarToPackages(URL jarurl,File jarfile,boolean cache).
http://www.cc.jyu.fi/~vpkaihla/temp/CachedJarsPackageManager.java
Be sure to ask additional info if above wasn't sufficient.
--
vegai