- This topic has 6 replies, 5 voices, and was last updated 14 years, 7 months ago by support-shalini.
-
AuthorPosts
-
ErezMemberHi,
I am getting a message about Ant runtime classpath missing the Tools.jar.
Could someone explain me if this is really necessary and why?
Thanks a lot,Erez
support-michaelKeymasterFrom your message I can not understand what the cause of your problem might be. Please provide more context.
What is your environment (OS, ver of Eclipse & MyEclipse, other plugins installed?
What steps lead to this problem?
Are you running your own Ant tasks?Michael
MyEclipse Support
ErezMemberMy configuration is:
OS: Windows XP
Eclipse: 3.0M3
MyEclipse 3.6.2It’s easy to duplicate it by:
right click the ‘Xdoclet-buld.xml’ in the Package Explorer and click “Run Ant…”
The only plug-in I’ve installed is Struts-Console, and except for that I am not running any other Ant tasks of my own.. yet 🙂Erez
Scott AndersonParticipantErez,
You need to verify your Ant settings at Window > Preferences > Ant > Runtime. On the classpath tab, the tools.jar file contained in your current JDK should be listed. If it isn’t, add it to the classpath and that should take care of the issue.
–Scott
MyEclipse Support
ErezMemberThanks it works now!
Erez
narpal.dhillonMemberI am facing this problem in Vista. You have provded a solution for XP. How can I dop that in Vista
C:\>ant
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
Buildfile: build.xml does not exist!
Build failed@support-scott wrote:
Erez,
You need to verify your Ant settings at Window > Preferences > Ant > Runtime. On the classpath tab, the tools.jar file contained in your current JDK should be listed. If it isn’t, add it to the classpath and that should take care of the issue.
–Scott
MyEclipse Support
support-shaliniMembernarpal.dhillon,
Even on Vista, the path remains the same. From MyEclipse IDE Menu bar, go to Window > Preferences > Ant > Runtime > Classpath tab and verify if the jar file is available.
Let me know if that helps. -
AuthorPosts