Monday, May 30, 2011

ANT getting error to locate tools.jar

Share at Facebook

When I was using the below command to check the version of ANT
ant -version

I was getting the following error.

Unable to locate tools.jar. Expected to find it in C:\java\jre6\lib\tools.jar

To resolve the issue, I have copied the tools.jar file from C:\jdk160_21\lib to C:\java\jre6\lib\ and it worked for me.

No comments: