[kaffe] Odd Jython/jar behaviour

Vesa Kaihlavirta vpkaihla at cc.jyu.fi
Mon Jan 6 09:59:03 PST 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 at kontu gzz $ make jython
Tempfile is /tmp/fileVMGn2R
java -Xms64M -Xmx128M  
-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).


Be sure to ask additional info if above wasn't sufficient.

More information about the kaffe mailing list