On Mon, 10 Sep 2001, C. Porter Bassett wrote:
> Robert W. Bill wrote:
> > You should get a test.class and a test$_PyInner.class as a result
> > of the jythonc compile. Both are required to run, and when you
> > get both, you've gotten it to work properly. You're almost there!
>
> Thanks for all your help! I have gotten it to compile with jythonc, and I
> have both of the .class files now, but I cannot get it to run. I try to run
> it with either java or jview, and I get this error in java:
> java.lang.NoClassDefFoundError: org/python/core/PyObject
> and the following error with jview:
> java.lang.NoClassDefFoundError: org/python/core/Py
> at test.main (test.java:60)
> ERROR: java.lang.NoClassDefFoundError: org/python/core/Py
>
> What do I do now? I'm so close, I can taste it!
Include the Jython.jar file in the classpath when running the
compiled classes. The missing "org.python.core.PyObject" and other
classes that the errors report as missing are found in the
jython.jar file. If test.class and test$_PyInner.class are in the
current directory, use:
java -cp .;c:\jython-2.1a3\jython.jar test
-rb
|