*
The moose likes Testing and the fly likes JMockit & running ant from eclipse - Agent Jar not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "JMockit & running ant from eclipse - Agent Jar not found" Watch "JMockit & running ant from eclipse - Agent Jar not found" New topic
Author

JMockit & running ant from eclipse - Agent Jar not found

Ian Axelrod
Greenhorn

Joined: Jul 23, 2011
Posts: 1
Hello,

I've been trying to unit test a massive code base that contains copious amounts of static methods, and found jmockit to be very useful for this. I've run into a problem where if I try to run the ant build.xml from within eclipse I am told that there is no agent jar, so the advanced features of jmockit cannot be used.

I have tried putting the javaagent parameter in the vmargs that ant uses in junit tests to no avail.

I see no documentation that addresses this particular issue with the combination of ant and eclipse.

Anyone have any clues? Do I need to specify the vmargs somewhere else?

Thanks for your time,

-Ian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMockit & running ant from eclipse - Agent Jar not found
 
Similar Threads
Eclipse and Ant
Program running much slower when run as an executable jar
Hi, problem on reinstalling the eclipse galileo.
ANT could not find class for <junit>
TestNG vs JUnit, mockito + Powermock vs jmockit