java.lang.NoClassDefFound
Hi All,
In my web application i have a class ClassA inside package package1. When i am trying to access ClassA from some other class I am getting java.lang.NoClassDefFound error package1/ClassA. I know the runtime couldn't find the class. But it is an existing application. But we recently migrated to Jdk1.4 from jdk1.3. This would be problem?
Regards,
Mari
Regardless of what JVM you're using, if you get that message it always means that the class in question is missing from the classpath (unless for some reason your application synthesizes and throws the exception - there's no good reason to do that though).
If the only change is the JVM, then you must have been picking up the class from the old JVM. If the classpath has changed as well, then the class is no longer visible to the new path.
It really is that simple.