Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "NoClassDefFoundError: with GroupLayout" Watch "NoClassDefFoundError: with GroupLayout" New topic

NoClassDefFoundError: with GroupLayout

Karl Green

Joined: May 21, 2003
Posts: 12

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,

Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2454
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.
I agree. Here's the link:
subject: NoClassDefFoundError: with GroupLayout
jQuery in Action, 3rd edition