facebook

Tools.jar missing in the classpath of Ant [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #199155 Reply

    Erez
    Member

    Hi,

    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

    #199158 Reply

    support-michael
    Keymaster

    From 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

    #199159 Reply

    Erez
    Member

    My configuration is:

    OS: Windows XP
    Eclipse: 3.0M3
    MyEclipse 3.6.2

    It’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

    #199197 Reply

    Scott Anderson
    Participant

    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

    #199212 Reply

    Erez
    Member

    Thanks it works now!

    Erez

    #307371 Reply

    I 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

    #307380 Reply

    narpal.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.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Tools.jar missing in the classpath of Ant [Closed]

You must be logged in to post in the forum log in