|
From: James D. <de...@sy...> - 2001-07-17 12:28:01
|
Bryn, thanks for replying. I am able to work with Jython interactively from the command line, but would like now to embed Jython scrips in my Java app. I continue to get a troubling error when I attemp to run the SimpleEmbedded java routine found at http://jython.org/docs/embedding.html. Perhaps you can help. Below is a snip from another developer who experienced the same trouble (have pinged him also). Have you seen this one before and if so, how is it corrected?? thanks in advance, Jim. Ryan wrote: 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, -----Original Message----- From: br...@je... [SMTP:br...@je...] Sent: Wednesday, July 11, 2001 5:46 PM To: bc...@wo...; jyt...@li... Cc: de...@sy... Subject: RE: [Jython-dev] Jython 2.1 and JVM 1.3 Actually, 2.1 even seems to work with Java 1.4, which my previous version (1.1 + 09) did not. I've been using 1.3 for over a year now with JPython, and upgraded to Jython 2.1 a couple of weeks ago with no problems. Bryn > -----Original Message----- > From: bc...@wo... [SMTP:bc...@wo...] > Sent: Wednesday, July 11, 2001 3:34 PM > To: 'jyt...@li...' > Cc: James Deller > Subject: Re: [Jython-dev] Jython 2.1 and JVM 1.3 > > [James Deller] > > >Am interested in your Jython interpreter for possible use in an on-going > >project. Is 2.1 compatible with JVM 1.3?? Haven't run across anything > on > >your site stating that it is.. > > Well, I have not yet run across any thing that indicate jython-2.1a1 > isn't compatible with JDK1.3. > > You can safely assume it is compatible. If you discover a situation > where it isn't, please report it as bug on our bug tracker: > > http://sourceforge.net/tracker/?group_id=12867&atid=112867 > > regards, > finn > > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-dev |