0 votes
1 view
in Devops and Agile by (19.8k 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 (63.4k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !