Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NoClassDefFoundError: with GroupLayout

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic