run from command line [message #657444] |
Wed, 02 March 2011 19:34 |
No real name Messages: 1 Registered: March 2011 |
Junior Member |
|
|
I have created a Java project in eclipse. and I am able to run the demo code for some jar( webdriver) on eclipse.
When I try running the class in command window it gives me error
Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/W
ebDriver
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.WebDriver
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)
Could not find the main class: GoogleSuggest. Program will exit.
Can any one help me how can I run the program from window command line. I did make Class path entry for the selenium standalone jar file.
Still does not run. any help would be appreciated.
P.S I was able to run the program for a printing hello world from command line but was not able to run when linked to a jar.
[Updated on: Wed, 02 March 2011 19:36] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02614 seconds