Movatterモバイル変換
[0]ホーム
problems with PythonInterpreter class from Java
flfmrrs at fds.comflfmrrs at fds.com
Mon Apr 30 10:34:41 EDT 2001
For some reason I am having problems using the PythonInterpreter class whenIattempt to embed Jython. There are no errors whatsoever when I compile,butwhen I attempt to run it, I get this:Exception in thread "main"java.lang.NullPointerException atorg.python.core.PyJavaClass.lookup(PyJavaClass.java:39) atorg.python.core.PyObject.<init>(PyObject.java:46) atorg.python.core.PySingleton.<init>(PySingleton.java:8) atorg.python.core.PyNone.<init>(PyNone.java:7) atorg.python.core.PySystemState.initStaticFields(PySystemState.java:34) atorg.python.core.PySystemState.initialize(PySystemState.java:320) atorg.python.core.PySystemState.initialize(PySystemState.java:294) atorg.python.core.PySystemState.initialize(PySystemState.java:287) atorg.python.util.PythonInterpreter.<init>(PythonInterpreter.java:61) atorg.python.util.PythonInterpreter.<init>(PythonInterpreter.java:45) atSimpleEmbedded.main(SimpleEmbedded.java:6)Line 6 in SimpleEmbedded.java iswhere the PythonIntepreter variable isinitialized. This occurred when tryingto run the embed demo that comes withJython. I am using the 1.3 SDK from Sun,and Jython-2.0. Any ideas?Thanks,-Ryan
More information about the Python-listmailing list
[8]ページ先頭