From: Ryan S. <FL...@FD...> - 2001-04-30 13:33:01
|
For some reason I am having problems using the PythonInterpreter class when I attempt to embed Jython. There are no errors whatsoever when I compile, but when I attempt to run it, I get this: Exception in thread "main" java.lang.NullPointerException at org.python.core.PyJavaClass.lookup(PyJavaClass.java:39) at org.python.core.PyObject.<init>(PyObject.java:46) at org.python.core.PySingleton.<init>(PySingleton.java:8) at org.python.core.PyNone.<init>(PyNone.java:7) at org.python.core.PySystemState.initStaticFields(PySystemState.java:34) at org.python.core.PySystemState.initialize(PySystemState.java:320) at org.python.core.PySystemState.initialize(PySystemState.java:294) at org.python.core.PySystemState.initialize(PySystemState.java:287) at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:61) at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:45) at SimpleEmbedded.main(SimpleEmbedded.java:6) Line 6 in SimpleEmbedded.java is where the PythonIntepreter variable is initialized. This occurred when trying to run the embed demo that comes with Jython. I am using the 1.3 SDK from Sun, and Jython-2.0. Any ideas? Thanks, -Ryan |