aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Unable to run webdriver code in eclipse with ant ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Unable to run webdriver code in eclipse with ant ?" Watch "Unable to run webdriver code in eclipse with ant ?" New topic
Author

Unable to run webdriver code in eclipse with ant ?

Mac Dcosta
Greenhorn

Joined: Jun 11, 2013
Posts: 1
I have installed eclipse and ANT for my java webdriver code to build and run. My code builds successfully, but not able to run, it throws a bunch of error. Here is the error


I'm not able to understand what is the error ? Is it problem with the classpath or my code ? My code runs fine with Run button directly. But gives this error with build.xml

Here is my build file

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

It is a problem with you classpath. You need to determine which JAR file contains org.openqa.selenium.WebDriver and ensure that it is in your classpath. Try replacing lines 12 to 16 with this:



JBoss In Action
 
 
subject: Unable to run webdriver code in eclipse with ant ?