线程" main"中的例外情况java.lang.NoClassDefFoundError:javax / websocket / DeploymentException

时间:2018-06-17 22:01:21

标签: ios eclipse appium

我正在尝试执行此程序:

public class IosSettings {

    public static AppiumDriver driver;

    public static void main(String[] args) throws MalformedURLException, InterruptedException{

        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability("deviceName", "sameer's iphone");
        capabilities.setCapability("platformName", "iOS");
        capabilities.setCapability("platformVersion", "11.4");
        capabilities.setCapability("app", "settings");

        driver = new IOSDriver(new URL("https://0.0.0.0:4723/wd/hub"), capabilities);
        driver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);

    }

}

但是,我收到了这个错误:

  

线程中的异常" main" java.lang.NoClassDefFoundError:javax / websocket / DeploymentException       在io.appium.java_client.ios.ListensToSyslogMessages。(ListensToSyslogMessages.java:34)       在appiumFirstTest.IosSettings.main(IosSettings.java:25)

0 个答案:

没有答案