From: James S. <js...@ab...> - 2002-01-03 20:10:20
|
dealing with Jython on a Solaris 2.8 system, jython 2.1 installed well in /usr/local - working with one of the simple button examples ># simple_button.py > >from pawt import swing >import java > >def exit(e): java.lang.System.exit(0) > >frame = swing.JFrame('Swing Example', visible=1) >button = swing.JButton('Close Me!', actionPerformed=exit) >frame.contentPane.add(button) >frame.pack() jython simple_button.py works fine jythonc simple_button.py produces all the correct files in jpyworks - but java simple_button fails with Exception in thread "main" java.lang.NullPointerException at org.python.core.PyJavaClass.lookup(PyJavaClass.java:43) 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:10) at org.python.core.PySystemState.initStaticFields(PySystemState.java:396) at org.python.core.PySystemState.initialize(PySystemState.java:375) at org.python.core.Py.initProperties(Compiled Code) at org.python.core.Py.runMain(Py.java:817) at simple_button.main(simple_button.java:77) this is java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_06, native threads, sunwjit) all suggestions welcome Jim Schombert |