|
From: Thomas R. <t.r...@co...> - 2001-03-07 15:50:28
|
Hello, I've a java applet that runs with the Java PlugIn (JDK1.3). The applet is (RSA-)signed an has all permissions. Within the applet I tried to execute a jpython command (print "hello") with the exec-method of PythonInterpreter. The exec-method causes an java.lang.NoClassDefFoundError: org/python/core/PyFunctionTable. I delivered the python.jar with the applet and I'm able to intstantiate the PytonInterpreter and any class of org/python/core in the applet without problems. Could somebody help me?? with kind regards Thomas OS: Windows NT4.0 SP6 stack strace: Exception occurred during event dispatching: Traceback (innermost last): (no code object) at line 0 java.lang.NoClassDefFoundError: org/python/core/PyFunctionTable at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.lang.ClassLoader.defineClass(ClassLoader.java:426) at org.python.core.BytecodeLoader.loadClassFromBytes(BytecodeLoader.java:76) at org.python.core.BytecodeLoader.loadBytes(BytecodeLoader.java:92) at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:103) at org.python.core.Py.compile(Py.java:1341) at org.python.core.Py.compile(Py.java:1354) at org.python.core.__builtin__.compile(__builtin__.java:188) at org.python.core.Py.exec(Py.java:946) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:111) at com.pd.prototypes.ptarchi.allg.TestApplet.jButton1_actionPerformed(testapple t.java:113) at com.pd.prototypes.ptarchi.allg.TestApplet$1.actionPerformed(testapplet.java: 45) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto n.java:1504) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:3 78) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener .java:216) at java.awt.Component.processMouseEvent(Component.java:3717) at java.awt.Component.processEvent(Component.java:3546) at java.awt.Container.processEvent(Container.java:1164) at java.awt.Component.dispatchEventImpl(Component.java:2595) at java.awt.Container.dispatchEventImpl(Container.java:1213) at java.awt.Component.dispatchEvent(Component.java:2499) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125) at java.awt.Container.dispatchEventImpl(Container.java:1200) at java.awt.Component.dispatchEvent(Component.java:2499) at java.awt.EventQueue.dispatchEvent(EventQueue.java:319) at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:84) java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/python/core/PyFunctionTable |