> 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.
>
OK, I downloaded sun's java sdk 1.3.1_01, and tried again.
The registry file is exactly as I got it out of the box, except for the
following 2 lines:
python.jythonc.compiler = c://jdk1.3.1_01/bin/java.exe
python.path = c:\\jython\\lib
Again, my little test program works with jython. I then tried the
following:
jythonc test.py
I got errors again. Here they are:
1042:PWORK:~$ jythonc test.py
processing test
Required packages:
Creating adapters:
Creating .java files:
test module
Compiling .java to .class...
Compiling with args: ['c://jdk1.3.1_01/bin/java.exe', '-classpath',
'C:\\jython-2.0\\jython.jar;C:\\Program
Files\\proe2000i2\\modchk\\java\\xml\\xml4j.jar;.\\jpywork;;C:\\jython-2.0\\
Tools\\jythonc;C:\\cygwin\\home\\porter\\.;C:\\jython-2.0\\Lib;c:\\jython\\l
ib;C:\\jython-2.0', '.\\jpywork\\test.java']
1 java.lang.NoClassDefFoundError: /\jpywork\test/java
Exception in thread "main"
ERROR DURING JAVA COMPILATION... EXITING
1043:PWORK:~$
I then tried something from the documentation that I didn't understand:
jython test.class test.py
This ran the script, and created a file test$py.class. It also gave me an
erorr "Could not find class: test.class"
I don't think that it worked, because when I run
java -cp . test\$py.class
I get a java.lang.NoClassDefFoundError.
What is my next step to getting things working?
|