0

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.

JoseK
  • 31,141
  • 14
  • 104
  • 131
  • possible duplicate of [java.lang.UnsupportedClassVersionError: Bad version number in .class file?](http://stackoverflow.com/questions/2466828/java-lang-unsupportedclassversionerror-bad-version-number-in-class-file) – Joachim Sauer Jun 16 '11 at 09:02
  • This might be useful http://stackoverflow.com/questions/2466828/java-lang-unsupportedclassversionerror-bad-version-number-in-class-file – Sunil Nadar Oct 11 '12 at 12:23
  • I found a similar question here [java.lang.UnsupportedClassVersionError: Bad version number in .class file?][1] [1]: http://stackoverflow.com/questions/2466828/java-lang-unsupportedclassversionerror-bad-version-number-in-class-file – Sunil Nadar Oct 11 '12 at 12:26

1 Answers1

3

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.

Michael Borgwardt
  • 342,105
  • 78
  • 482
  • 720