[kaffe] Odd Jython/jar behaviour
Dalibor Topic
robilad at yahoo.com
Mon Jan 6 10:20:02 PST 2003
hi Vesa,
--- Vesa Kaihlavirta <vpkaihla at cc.jyu.fi> wrote:
> vegai at 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'.
Offtopic: we should have some code to recognize these
options, I've seen some other code out there that uses
them. They should just map to -ms and -mx,
respectively.
> *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).
Could you patch the method addToJarPackages:
....
} catch (IOException ioe) {
// silently skip any bad directories
warning("skipping bad jar, '" +
(jarfile != null ?
jarfile.toString() :
jarurl.toString()) +
"'");
/** this is the patched line */
ioe.printStackTrace();
}
and report back what the IOException is about, and
where it's thrown from?
best regards,
dalibor topic
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the kaffe
mailing list