Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2007, 01:48 PM
Member
 
Join Date: Aug 2007
Posts: 2
J_a_y is on a distinguished road
java.lang.NoClassDefFoundError
Hi Guys,

We have just upgraded the JRE to ver1.5.09 on all machines. Unfortunately, this has caused an applet on one specific site not to work any more. Ordinarily we would just downgrade the JRE to the previous version which we know worked or, failing that, simply reghost the machine.

The problem is that one particular machine, one of our many HP Compaq DC7100 workstations, has decided not to play along. The last stable version installed was 1.4.1.05 which worked with out webEIS site. However, since upgrading to 1.5 the user has had problems. Even after ghosting the PC with the last installed version of JRE1.4.1.05 the webEIS applet will not run. It comes up with java.lang.NoClassDefFoundError

I have tried everything I can think of - both with and without the MSJVM. I've tried upgrading to the latest JRE 6.0.02. I've tried a clean install of each of the JRE versions so that is the only version installed. No luck. I've checked the JAVA_HOME which looks okay. Everything else I found on the web relates to this error when developing your own applet however this is not the case and nothing on the site has been changed.

The problem PC in question is XP SP2 however we are also able to replicate this problem on XP SP1. Below is the Java console log:
java.lang.NoClassDefFoundError: com/sas/apps/webEIS/viewer/DataPlayerApplet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(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)
Any help on this issue would be greatly appreciated.
Many thanks in advance,
Jay

Last edited by J_a_y : 08-02-2007 at 01:51 PM. Reason: typo
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-02-2007, 02:36 PM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Hi Jay,

Did you know/check where is this class: com/sas/apps/webEIS/viewer/DataPlayerApplet

The JVM can not find this class. In your previous installation, it might have been copied to JRE_PATH/lib/ext directory. If you copy the jar containing this class to classpath, your applet should work.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-07-2007, 12:51 PM
Member
 
Join Date: Aug 2007
Posts: 2
J_a_y is on a distinguished road
Problem solved.
Hi Levent,

Many thanks for the info. I finally found out who is "in charge" of the site. And that there are, in fact, several files that are meant to be copied into the /lib/ext directory.

Unfortunately, it still won't work with JRE 1.5.x but at least now we have a workaround for when the workaround (downgrading JRE) doesn't immediately work.

Regards
Jay
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
java.lang.NoClassDefFoundError: com.ibm.ws.orb.GlobalORBFactory hawkeye Enterprise JavaBeans 1 06-16-2008 11:56 AM
java.lang.NoClassDefFoundError fred Advanced Java 3 08-01-2007 06:00 PM
Exception in thread "main" java.lang.NoClassDefFoundError carl New To Java 2 08-01-2007 06:26 AM
java.lang.NoClassDefFoundError Exception when I invoke to a class outside projectEJB Daniel Enterprise JavaBeans 1 07-06-2007 07:08 AM
java.lang.NoClassDefFoundError: javax/activation/DataSource bbq Advanced Java 1 07-05-2007 05:26 AM


All times are GMT +3. The time now is 06:39 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org