Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » run from command line
run from command line [message #657444] Wed, 02 March 2011 19:34
No real name is currently offline No real nameFriend
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

Previous Topic:How can I pass arguments to the main method?
Next Topic:update site for sr2?
Goto Forum:
  


Current Time: Fri Apr 26 08:04:18 GMT 2024

Powered by FUDForum. Page generated in 0.02614 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top