Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
rfresh
Posts : 1
Join date : 2015-04-24

Eclipse webdriver error: ClassNotFoundException Empty Eclipse webdriver error: ClassNotFoundException

Fri Apr 24, 2015 11:15 pm
I'm getting this error "ClassNotFoundException" when I try to execute this line of code:

driver = new FirefoxDriver();

Now, here is the thing. This code was running perfectly fine from the default Eclipse workspace (username/workspace). What I am trying to do is now move my *.java files to a new workspace. And now I'm having this problem.

I've put all of my jar files into one folder and have added them to my package. I have selenium-java-xxx.jar andselenium-server-standalone-xxx.jar files in this new jar folder.

I can switch back to my old workspace and the file runs perfectly fine (firefox loads up fine and executes my selenium java code).

But when I switch to my new workspace, I get the error on that line of code.

I'm not sure where to look to try and fix this error?

Thanks for any help.
avatar
rtzjhay
Posts : 3
Join date : 2015-04-24

Eclipse webdriver error: ClassNotFoundException Empty Re: Eclipse webdriver error: ClassNotFoundException

Tue Apr 28, 2015 5:31 pm
hi 

im also new to the webdriver:

try this command:  WebDriver driver = new FirefoxDriver();

instead of driver = new FirefoxDriver();
Back to top
Permissions in this forum:
You cannot reply to topics in this forum