From: Robert W. B. <rb...@di...> - 2001-09-06 15:26:59
|
Hi Frank, On Thu, 6 Sep 2001, Frank Immich wrote: > Thanks...it's working now. > But I still have some questions. > I run jythonc hw.py ... the result is stored in jpywork. O.K.? Correct, but you can change that with jythonc's -w > to start hw.class I need all the other files:hw$_PyInner.class, > hw$HelloWorld.class, hw.class...Right ? Correct. > command: ..\jpywork>java -cp ".;..\jython.jar" hw > So I can not run a hw.py-->hw.class via jythonc file without the jython.jar > and all the other stuff ?? The files in jython.jar (and other stuff) are required. They don't have to be in jython.jar however. see below. > Is there a way to run hw.class on a "empty" > machine ? Assuming 'emtpy' means no Jython, but yes Java... Yes. jythonc's --deep, --core, --all and --jar options let you stuff all required classes in a jar file, so deployment requires sending just one jar. see http://www.jython.org/docs/jythonc.html. > BTW is there a (reliable) list of py modules which work with jython ? Not really a formal list unless you consider those that are included with the Jython distribution. The guideline has been that if it comes with Jython, someone has tried it; If it doesn't, try it and maybe post your findings here (assuming that doesn't rely on C extensions). -rb > At 07:29 PM 9/5/2001 +0000, Finn Bock wrote: > >[Frank Immich] > > > >>Hello, > >>Pretty new to Jython, and already faced with a problem. > >>Anyway, looking over the demo programs that come with, and I can't get > the > >>example helloworld, or any other, > >>to work. The output trace is attached. > >>All I found in the archive was a hint, that the classpath has to be set, > but > >>it seems to be O.K. > >>Any suggestions welcomed... > >> > >>... > >>1 java.io.IOException: CreateProcess: > >>C:\Programme\JavaSoft\JRE\1.3.1\bin\javac -classpath .... > > > >It looks like jython was installed with the JRE and there is no javac > >compiler in the JRE. You must re-install jython and make sure that you > >are starting the java command from the full JDK. > > > If you look in the directory from the error above, you'll find > there's no javac.exe there! On my system, javac is found in > c:\jdk1.3.1\bin. > > > Perhaps you can get away with editing the jython.bat script > to point to the jdk... but probably the cleanest approach is as > Finn says, reinstall, giving the full path to java IN the jdk > directory as you run the installer, else it will pick up either > the one in the jre tree, or worse, the MS native java... > > > > Mats > > |