Run Eclipse Java project outside Eclipse -
i'm java newbie. have java application runs in eclipse. have exported jar file aaccording instruction found @ http://www.vogella.com/tutorials/eclipse/article.html#firstjavaexport.
however, when run application command line, error message saying:
exception in thread "main" java.lang.noclassdeffounderror: org/openqa/selenium/webdriver @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(unknown source) @ java.lang.class.getmethod0(unknown source) @ java.lang.class.getmethod(unknown source) @ sun.launcher.launcherhelper.getmainmethod(unknown source) @ sun.launcher.launcherhelper.checkandloadmain(unknown source) caused by: java.lang.classnotfoundexception: org.openqa.selenium.webdriver @ java.net.urlclassloader$1.run(unknown source) @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) ... 6 more
what doing wrong?
you need export project runnable jar file (file > export > java / runnable jar file).
after this, can execute via command line java -jar app.jar
Comments
Post a Comment