|
From: <bc...@wo...> - 2001-04-25 18:42:40
|
[Andreas Jakobik] >Hi > >to ease the use of a Java library from Jython I have written conversion >routines between PyDictionary and mylib.XClass. It works fine when I run >this from the Jython interpreter, but when I want to test my conversion >routines from Java (using JUnit) I get a NullPointerException at >org.python.core.InternalTables.createInternalTables. Could you post the exception traceback? >This happens when I want to (e.g.) create a PyDictionary object. > >I guess I missed initializing the library somehow. You can initialize the runtime by calling one of the PySystemState.initialize() methods. This is normally done automaticly when using the PythonInterpreter class. If you are not using this utility class, you may have to call one of the initialize() methods yourself. If you can post a complete failing example, maybe we can improve jython in this respect. >Is there a system property I must set?? The exception traceback will tell us more. >Using Jython-2.0. regards, finn |