From: Rodrigo D. A. S. <rod...@te...> - 2001-05-29 05:00:25
|
Finn, thank you very much for your reply. I have managed to make Jython 2.1a1 work upon Kaffe1.0.6 and Guarana1.7 (a reflective enhanced JVM based on Kaffe http://www.ic.unicamp.br/~oliva/guarana/index.html). The hints you gave me were ``bizzu'' (pronounces bee-zoo, brazilian slang for info tha= t solves a problem) d:o) I have tested the complaining jar files with jdk 1.3 jar, but could not discover any misbehaviour there. So, I j= ust removed them from my claspath (since these were not needed to interect w= ith jython now). Then,... loading jython with : guarana -Dpython.home=3D$HOME/Tese/work/bin org.python.util.jython "$@" where guarana =3D=3D JVM ~=3D kaffe *sys-package-mgr*: processing new jar, '/home/rodrigo/Tese/work/lib/getop= t.jar' *sys-package-mgr*: processing new jar, '/usr/local/Tese/guarana-1.7/jit3/= share/kaffe/Klasses.jar' *sys-package-mgr*: processing new jar, '/usr/local/Tese/guarana-1.7/jit3/= share/kaffe/comm.jar' *sys-package-mgr*: processing new jar, '/usr/local/Tese/guarana-1.7/jit3/= share/kaffe/guarana.jar' *sys-package-mgr*: processing new jar, '/usr/local/Tese/guarana-1.7/jit3/= share/kaffe/kjc.jar' *sys-package-mgr*: processing new jar, '/usr/local/Tese/guarana-1.7/jit3/= share/kaffe/microsoft.jar' *sys-package-mgr*: processing new jar, '/usr/local/Tese/guarana-1.7/jit3/= share/kaffe/pjava.jar' *sys-package-mgr*: processing new jar, '/usr/local/Tese/guarana-1.7/jit3/= share/kaffe/rmi.jar' *sys-package-mgr*: processing new jar, '/usr/local/Tese/guarana-1.7/jit3/= share/kaffe/servlet.jar' Jython 2.1a1 on java1.0.6-20010401 (JIT: kaffe.jit) >>> import java Traceback (innermost last): File "<console>", line ImportError: no module named java So I tried the following... >>> import sys >>> sys.add_package('BR.unicamp.Guarana') <java package BR.unicamp.Guarana at 140321328> >>> import BR.unicamp.Guarana >>> sys.add_package('java') <java package java at 138319056> >>> import java >>>=20 And voil=E1! I'm ready to play with it now.=20 best regards, Rod Senra --=20 Rodrigo Senra =20 Computer Engineer (GPr Sistemas Ltda) rod...@gp...=20 MSc Student (IC - UNICAMP) Rod...@ic... Home Page http://www.ic.unicamp.br/~921234 (ICQ 114477550) |