aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Cannot instantiate the class (testng + Ant) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Cannot instantiate the class (testng + Ant)" Watch "Cannot instantiate the class (testng + Ant)" New topic

Cannot instantiate the class (testng + Ant)

Shashank Gollapudi
Ranch Hand

Joined: Jan 19, 2012
Posts: 33

I am trying to run my Selenium webdriver class using testng and below is my build.xml file and when i try running it, i keep getting the following error and i unable to trace the cause, as i cant see any reason for the class to be instantiated.

Any help on this is purely appreciated.

Peter Johnson

Joined: May 14, 2008
Posts: 5823

Try running ant with the -v option, that should print the classpath for the <testng> task which should give you some ides.

JBoss In Action
I agree. Here's the link:
subject: Cannot instantiate the class (testng + Ant)