This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError: with GroupLayout

 
Karl Green
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2539
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic