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

[1363 byte] By [mtb70mpha] at [2007-11-27 9:10:58]
# 1
it could be because of ant, no likely, but possible
dz0004455a at 2007-7-12 21:56:07 > top of Java-index,Desktop,Core GUI APIs...
# 2
Under Netbeans 5.5.1, the jar you need is ./platform6/modules/ext/swing-layout-1.0.jarand you will need to make this available in the list of resources the JApplet needs.
sabre150a at 2007-7-12 21:56:07 > top of Java-index,Desktop,Core GUI APIs...