码迷,mamicode.com
首页 > 编程语言 > 详细

Exception in thread "main" java.lang.NoSuchMethodError: org.testng.TestNG.configure(Lorg/testng/CommandLineArgs;)V

时间:2017-05-26 00:38:34      阅读:1716      评论:0      收藏:0      [点我收藏+]

标签:app   chm   except   org   ini   ror   ...   under   exce   

TestNG运行时报以下错误:

Exception in thread "main" java.lang.NoSuchMethodError: org.testng.TestNG.configure(Lorg/testng/CommandLineArgs;)V
    at org.testng.remote.AbstractRemoteTestNG.configure(AbstractRemoteTestNG.java:77)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:214)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)

 

Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/CommandLineArgs
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:41)
Caused by: java.lang.ClassNotFoundException: org.testng.CommandLineArgs
    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)
    ... 1 more

 

Exception in thread "main" java.lang.NoSuchMethodError: org.testng.TestNG.configure(Lorg/testng/CommandLineArgs;)V

标签:app   chm   except   org   ini   ror   ...   under   exce   

原文地址:http://www.cnblogs.com/scios/p/6906346.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!