|
From: <bc...@wo...> - 2001-02-09 11:07:28
|
[Jayson S Baird] >Hiho, > > I'm a developer who is trying to embed Python code into Java, so of >course I came to Jython. When trying to run your example after compiling, >I get the following stack dump: > 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:341) > 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) > >Any idea what's causing this? no one has mentioned it in the FAQ's or the >list archives... It works for me: d:\java\jython-2.0\demo\embed>echo %CLASSPATH% d:\java\jython-2.0\jython.jar;. d:\java\jython-2.0\demo\embed>i:\java\jdk1.3\bin\java.exe SimpleEmbedded Hello, brave new world sys module 42 x: 4 Goodbye, cruel world d:\java\jython-2.0\demo\embed> More info is needed about your platform, software version and env-vars before we can give any advice about the situation you are seeing. regards, finn |