Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes NoClassDefFoundError again 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 » Beginning Java
Bookmark "NoClassDefFoundError again" Watch "NoClassDefFoundError again" New topic
Author

NoClassDefFoundError again

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I'm back the basics

There is an environment where everything was working fine :

/lib/a.jar <- it contains MyException.class
/lib/b.jar
/lib/c.jar

But.
Somebody has released a new version of a.jar and b.jar,
and then NoClassDefFoundError:MyException is thrown.

He told me that the batch where the CLASSPATH is set has not changed, only the jars. And MyException.class is still in a.jar.

I'm really puzzled by this. It is usually a CLASSPATH problem, but since the batchs have not changed... I can't check the environment myself....

Any clues ?


[My Blog]
All roads lead to JavaRanch
Ajay A Patil
Greenhorn

Joined: Apr 13, 2006
Posts: 22
Check if the package for "MyException" class has changed.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Ajay, thank you for the suggestion.
I've actually found where the problem lies.
The jar files got corrupted when sent by email :roll:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoClassDefFoundError again
 
Similar Threads
Jar...
Classpath for jar files (Tiger)
jar file
Parsing a CSV file
How to change the Import order of jar files in WAS