A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/067955.html below:

problems with PythonInterpreter class from Java

problems with PythonInterpreter class from Java problems with PythonInterpreter class from Javaflfmrrs at fds.com flfmrrs at fds.com
Mon Apr 30 10:34:41 EDT 2001
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 



More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4