Applet works in NetBeans but not outside of it
I have been working on an applet that accesses a database and interactively allows users to chose which sets of data to display in tabular or graphical form, and it works in NetBeans but when I try to run even the html code that NetBeans provides for it, i get the following error:
java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
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)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I looked at other forums and I have NetBeans 5.5 so the swing-layout-1.0.jar library is in the program. I looked in the org/jdesktop/layout/ folder, which is inside a zipped folder, and couldnt find the GroupLayout$Group file. Also, probably because of this, running the jar file that NetBeans creates yeilds a Fatal Error.
I do extend JApplet for this class.
Is there a way to fix this?
Thanks

