我正在尝试使用以下命令运行selenium-server-standalone-3.0.0-beta3.jar
java -jar C:\Selenium\selenium-server-standalone-3.0.0-beta3.jar -role hub
但是在跑步的时候我得到了如下例外情况:
Exception in thread "main" java.lang.UnsupportedClassVersionError:
org/openqa/grid/selenium/GridLauncherV3 : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
我的Path
变量位于以下条目之下:
C:\Progra~1\Java\jdk1.7.0_79\bin\
我在哪里滞后?是否需要Selenium 3.0