From: Robert W. B. <rb...@di...> - 2001-09-10 15:23:42
|
On Sun, 9 Sep 2001, C. Porter Bassett wrote: > > First of all, I apologize if this is RTFM. I tried, but didn't make it very > far. > > I have some python experience, but absolutely *no* java experience, and I am > trying to get jython 2.0 up and running on my win2k box. > > I downloaded it and installed it with jview Here's the suspicious part- "jview". With jview, you must first run "clspack -auto" before using Jython. Additionally, don't use jview to compile Jython code to bytecode. Use jikes or sun's javac instead. -rb > into the directory > c:\WINNT\java\jython-2.0. I edited the registry file. I added two lines: > python.path=.;c:\\winnt\\java\jython-2.0\\lib > python.jythonc.compiler = jview > > Because of my utter lack of java knowledge, I didn't add any > python.jythonc.classpath or python.jythonc.compileropts. > > I ran a simple test program and it ran fine in jython. I then tried to > create java bytecode, and this is what happened: > 2111:PWORK:~$ jythonc test.py > Traceback (innermost last): > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\jythonc.py", line 4, in ? > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\main.py", line 70, in ? > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\compile.py", line 7, in ? > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\SimpleCompiler.py", line > 6, in ? > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\ImportName.py", line 9, > in ? > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\util.py", line 11, in ? > ImportError: no module named java > 2111:PWORK:~$ > > > Like I said, I tried following what instructions I could find. Could > somebody please help me get started with jython? |