*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 5812
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to run webdriver code in eclipse with ant ?
 
Similar Threads
ANT/MySQL JDBC Classloader Problem
Not able to understant object initialisation
Problems with Ant / JDBC
java.util.zip.ZipException: error in opening zip file
java.util.zip.ZipException: error in opening zip file