java.lang.NoClassDefFoundError:bsh / EvalError

时间:2016-12-22 11:42:27

标签: java android appium

我已配置我的系统并尝试运行我的appium代码并获得以下错误。所以请帮忙

java.lang.NoClassDefFoundError: bsh/EvalError
    at org.testng.TestRunner.<init>(TestRunner.java:99)
    at org.testng.remote.support.RemoteTestNG6_0$1.newTestRunner(RemoteTestNG6_0.java:26)
    at org.testng.remote.support.RemoteTestNG6_0$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG6_0.java:59)
    at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:561)
    at org.testng.SuiteRunner.init(SuiteRunner.java:156)
    at org.testng.SuiteRunner.<init>(SuiteRunner.java:110)
    at org.testng.TestNG.createSuiteRunner(TestNG.java:1235)
    at org.testng.TestNG.createSuiteRunners(TestNG.java:1222)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1074)
    at org.testng.TestNG.run(TestNG.java:999)
    at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)
Caused by: java.lang.ClassNotFoundException: bsh.EvalError
    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)
    ... 13 more

1 个答案:

答案 0 :(得分:1)

尝试添加jar文件bsh-1.3.0.jar。版本取决于您和项目