From: Frank I. <fra...@gm...> - 2001-09-06 08:47:52
|
Thanks...it's working now. But I still have some questions. I run jythonc hw.py ... the result is stored in jpywork. O.K.? to start hw.class I need all the other files:hw$_PyInner.class, hw$HelloWorld.class, hw.class...Right ? 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 ?? Is there a way to run hw.class on a "empty" machine ? BTW is there a (reliable) list of py modules which work with jython ? Thanks again...and sorry for my ignorance Ciao Frank 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 -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a |