Getting .UnsupportedClassVersionError: io/appium/java_client/AppiumDriver : Unsupported major.minor version 51.0" error when instantiating AppiumDriver object

pom.xml.txt (6.4 KB) Getting “java.lang.UnsupportedClassVersionError: io/appium/java_client/AppiumDriver : Unsupported major.minor version 51.0” error when I substantiate an AppiumDriver object

Using java-client-1.6.2.jar and all selenium jars are 2.42.2

Did not get the error when I was creating WebDriver objects - only when creating AppiumDriver objects

My pom file is attached
The results of a mvn dependency:tree command is also attached mvn dependency tree.txt (5.8 KB)

Later found that the jar selenium-remote-driver-2.35.0 was being added to my Eclipse .classpath, even though there is no reference to it in my pom. I added a reference to selenium-remote-driver-2.42.2 , but still getting the error!!!

Have the same issue , any idea how to solve it ?

What version of Java are you using? The error message is basically saying it doesn’t support the current version of Java that you are using.

pls see the question I put