Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.7k points)

While running the selenium script, I am getting the following error message in Eclipse console:

Class has been compiled by a more recent version of the Java Environment (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0.

Java Version: 8

IDE: Eclipse Oxygen

Firefox Version: 46

1 Answer

0 votes
by (62.9k points)

Basically, class file version 53.0 stands for java-9, so it means that whatever class you have been trying to compile was compiled with javac-9 and you tried to run it with JRE-8. You could do either of the two things that are to re-compile that class with javac-8(Downgrade JDK) or use the JRE-9 to compile and run as well.

Browse Categories