Pallavi Deshpande
Pallavi Deshpande

Reputation: 1

java.lang.UnsupportedClassVersionError: Bad version number in .class file

I am using jdk 1.5.0_22 and this is set in env variables also. my server also has the same java version.

but still I am getting this error "java.lang.UnsupportedClassVersionError: Bad version number in .class file". Please help.

Upvotes: 0

Views: 7259

Answers (1)

Michael Borgwardt
Michael Borgwardt

Reputation: 346260

Are you using any libraries (JAR files)? It could be that those were compiled with Java 6 and thus cannot be run on a Java 5 JVM.

Upvotes: 3

Related Questions