Search code examples
javaeclipsejarjava-ee-6noclassdeffounderror

why am i getting the noclassdeffounderror after deploying?


I am getting noclassdeffounderror after deploying the jar with changes to a certain class file. I am able to see the class file in the jar when i extracted the jar file through the 7zip.

I also de-compiled the .class file to find any errors but did not get any thing .

While deploying i Just dragged the .class file from the eclipse work space into a pre existing jar file. does that matter?

Does the jdk version in which the jar file is compiled matter because i am running on jre 1.7 in eclipse but my deployment environment is of jre 1.6 ?


Solution

  • This worked perfectly when i compiled the code in jdk 1.6 . java.security.SecureClassLoader is changed in both the versions. thats why i suppose i got the error .