Can not use Action tag, NoClassDefFoundError: SwixApplet$1
"ylsdd" <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
hi,
I am trying to run the example given in swixml_136.
I compile the code on a linux server, installed with
j2sdk-1.4.2_01-fcs.rpm, and check the applet on winxp, installed
with jre Version 1.4.2_02 (build 1.4.2_02-b03).
If I remove the declaration of "public AbstractAction submit",
everything is ok. But with the declaration of "submit", the applet
can not get loaded, and the console will give the following info,
java.lang.NoClassDefFoundError: SwixApplet$1
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
Can anyone please tell me what to do?
Yang