From: <sp...@is...> - 2001-11-26 15:26:55
|
Le lundi 26 novembre 2001, =E0 04:10 PM, Finn Bock a =E9crit : > How does java find jython.jar with that command line? > > Is jython.jar located in the jre/lib/ext directory? It probably > shouldn't be. [..] | My guess is that jython.jar exists in jre/lib/ext and that is the=20 reason | that jython can only load other code that also reside on the | boot-classpath. Yes it actually is. I put everything I need in the jre/lib/ext dir to=20 avoid classpath problems. Is there a side effect of putting jython in=20 this directory? I cannot see why putting the jython.jar in this=20 directory would prevent to load classpath items physically located=20 elsewhere? >> I have written the equivalent in Java: > > [...] > >> When I run it: >> java -cp SPEdit.jar:. Test >> >> I get: >> *sys-package-mgr*: processing new jar,=3D20 >> = '/Users/spierre/Projects/SPEdit/prototype/build/SPEdit.app/Contents/Resour= =3D >> ces/Java/SPEdit.jar' > > Hmm, that output can't be from your little java program. Well I did not put anything else than the program. The jython.jar seems=20= to be automatically loaded and processes the classpath items. I think=20 even if the -cp option is specified the jvm goes looking into the=20 /jre/lib/ext. This is strange but understandable...maybe putting=20 everything in the ext directory is not that a good idea... I will try by=20= moving the jython.jar and see what happens... Thanks, -- S=E9bastien. |