Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 676AF178E5 for ; Mon, 27 Apr 2015 16:26:47 +0000 (UTC) Received: (qmail 31272 invoked by uid 500); 27 Apr 2015 16:26:47 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 31200 invoked by uid 500); 27 Apr 2015 16:26:47 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 31188 invoked by uid 99); 27 Apr 2015 16:26:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2015 16:26:46 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=HTML_MESSAGE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of johnhughes@function-g.com does not designate 54.191.145.13 as permitted sender) Received: from [54.191.145.13] (HELO mx1-us-west.apache.org) (54.191.145.13) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2015 16:26:39 +0000 Received: from smtp-net2mail.chtglobal.com (smtp.usa.hibox.hinet.net [208.70.201.189]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id BEB2827377 for ; Mon, 27 Apr 2015 16:26:15 +0000 (UTC) X-SBRS: None X-Remote-IP: 173.15.218.253 X-Remote-Host: 173-15-218-253-busname-atlanta.hfc.comcastbusiness.net X-MID: 6437629 X-Client-Tag: 6437629 X-Auth-ID: johnhughes@function-g.com X-EnvelopeFrom: johnhughes@function-g.com Received: from 173-15-218-253-busname-atlanta.hfc.comcastbusiness.net (HELO JohnHughesPC) ([173.15.218.253]) by smtp-net2mail.chtglobal.com with ESMTP; 27 Apr 2015 09:26:14 -0700 From: "John J. Hughes II" To: Subject: tools.jar not found Date: Mon, 27 Apr 2015 12:26:12 -0400 Message-ID: <000601d08106$e0dd70e0$a29852a0$@function-g.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01D080E5.59CC6D20" X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdCBBKfEP1jRZz+lQsi01Q6XQyF47Q== Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0007_01D080E5.59CC6D20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit All, I have searched online and can't fine and answer so please bear with me. When I run ANT it says it can't find tools in the JRE lib, why is it looking there? If I copy tools.jar from the JDK to the JRE lib it works fine but that will break on the next update so I would prefer to fix it correctly. I have rebooted and retested. There are no extra JDK or JRE values in the path, path simplified to only show useful values. I dumped the SET values to text files and search and don't fine any references to JRE there either. In settings: PATH = .;%JAVA_HOME%\bin;%ANT_HOME%\bin; Converts to: PATH = .;C:\Program Files\Java\jdk1.8.0_05\bin;C:\devenv\apache-ant-1.9.4\bin; C:\Projects>SET JAVA_HOME JAVA_HOME=C:\Program Files\Java\jdk1.8.0_05 C:\Projects>SET ANT_HOME ANT_HOME=C:\devenv\apache-ant-1.9.4 Error: C:\Projects>ant -version Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_45\lib\tools.jar Apache Ant(TM) version 1.9.4 compiled on April 29 2014 So what am I doing wrong, thanks. John ------=_NextPart_000_0007_01D080E5.59CC6D20--