wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes NoClassDefFoundError: with GroupLayout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "NoClassDefFoundError: with GroupLayout" Watch "NoClassDefFoundError: with GroupLayout" New topic
Author

NoClassDefFoundError: with GroupLayout

Karl Green
Greenhorn

Joined: May 21, 2003
Posts: 12
Hi,

I am not sure if this post should be in this forum, the applet forum, or the IDE forum so please bear with me. I’m trying to add some functionality via a JApplet to a legacy web app. The app is running jdk1.4 on Tomcat5.5. I have developed the applet in Neatbeans6.5 and it runs fine as a standalone applet. I’ve added the applet to the legacy app and when I try to open the applet I receive the following error:

java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
I’ve search the online and learned that I needed to add the swing –layout-1.0.3.jar to my project libraries in NetBeans, which I have done. I have also added the following to build.xml for when I distribute the war file to production:



I’ve restarted Tomcat and done a clean & build several times but I keep getting the same error. Any suggestions?

Thanks in advance,

Karl
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2157
    
    7
Any suggestions?


Don't use GroupLayout.

That is why most people recommend you build the GUI on your own so you are not reliant on a specific IDE or its custom classes.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: NoClassDefFoundError: with GroupLayout
 
Similar Threads
Applet error NoClassDefFoundError when run through HTML file
problem with mvn deploy
Applet dont show the Components when jsp page is Minimized
Problems while Loading Applet...
Applets Vs. Netbeans