|
From: Alexandre Petit-B. <apb...@cy...> - 2001-10-18 17:45:38
|
Samuele Pedroni writes: > to jython rt and if there is no real jython.jar, jython is unable to > locate the Lib dir Good point. I built my jar file like org-jython-lag.jar (lag for latest and greatest, we'll switch over to 2.1 when it's out.) I never crossed my mind that jython might be looking for its own jar. Duh. > b) Does gcj has the java.class.path property somehow set. Yes, it's set to the content of CLASSPATH (and maybe some other things.) So with that pointing to our libgcj.jar archive, I don't need the `java' symlink. > Jython rt tries to scan the jars and dirs on classpath in order > to list the java packages that are candidate for loading. Given what > you describe it seems that gcj classpath is empty or contain at most > the cwd. Yes it was. Thanks! So, bottom line. The problem was simply that I didn't have CLASSPATH set properly. I didn't cross my mind that a extremely dynamic environment like jython needed pointers to the archives it was going to explore. Duh. So when I position CLASSPATH to point to our runtime jar and the distributed jython jar, jython works regardless of the location it was started from. However, if I use the jython jar we generated with gcj (gcj can also go to bytecodes,) I get errors, but now that's my problem :-) Thanks a lot everyone for your help! ./A |