找不到主类org.testng.remote.remoteTestNg

时间:2015-07-22 04:46:31

标签: selenium-webdriver testng

当我运行我的xml文件时出现错误,无法找到主类org.testng.remote.remoteTestNg。

请查找错误日志

java.lang.UnsupportedClassVersionError: org/testng/remote/RemoteTestNG : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    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$000(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)

线程“main”中的异常

1 个答案:

答案 0 :(得分:0)

自6.9.4起,TestNG需要Java7。 见http://localhost/myProj/Scripts/knockout-2.3.0.debug.js