Programmers learn & share
0 votes
67 views

Problem :

I am getting this error when I include an opensource library that I had to compile from source.
java lang unsupportedclassversionerror bad version number in class file
by (6.9k points)   | 67 views

1 Answer

0 votes

Solution :

The reason behind you are getting this message is one of your projects is compiling 1.6 classes. It wont matter if you only have a 1.5 JRE on the system, because Eclipse has its own compiler and only needs a 1.5 JRE to compile 1.6 classes.

Follow bellow steps to resolve the issue:

Check the Project Properties>Java Compiler section

enter image description here

Further Readings:

https://www.eclipse.org/forums/index.php/t/1067175/

by (36.1k points)  
edited by
2,187 questions
2,514 answers
59 comments
241 users