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 BD1CE17797 for ; Tue, 28 Apr 2015 05:13:01 +0000 (UTC) Received: (qmail 93814 invoked by uid 500); 28 Apr 2015 05:13:01 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 93762 invoked by uid 500); 28 Apr 2015 05:13:01 -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 93751 invoked by uid 99); 28 Apr 2015 05:13:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 05:13:01 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for user@ant.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 05:12:53 +0000 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id CB81543BAB for ; Tue, 28 Apr 2015 05:12:32 +0000 (UTC) Received: from JanmySN ([93.130.219.35]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0MDmuc-1YVvyD1cFC-00HAOx for ; Tue, 28 Apr 2015 07:12:31 +0200 From: =?iso-8859-1?Q?Jan_Mat=E8rne_=28jhm=29?= To: "'Ant Users List'" References: <000601d08106$e0dd70e0$a29852a0$@function-g.com> <553E69A9.60004@googlemail.com> <001001d08111$9029a5a0$b07cf0e0$@function-g.com> In-Reply-To: Subject: AW: tools.jar not found Date: Tue, 28 Apr 2015 07:12:27 +0200 Message-ID: <000601d08171$ec00d730$c4028590$@de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AQHN6f5ggEsTzOV4MxmTBCNBiQBi2QI9kM3gnVRifICAALfCkIAACAfw Content-Language: de X-Provags-ID: V03:K0:lM2oloVVYLsHvTuC9vjfSVNsJLX+m6Lu6va7T9ElsHPAnzLmjDv ix3xNBuMHbGzKIhTOriIwlTvZGTXWki1oW+GRyL1jVJyWqyVq9BJ7hZiug3YxyqIDGpscZ/ FNB7RAkhq0PT/SK+lUhagmKp9Q0DQN/f2g4G++cJIqYpqdA3tdeNzloLCQfAHMFTe6MyN4g FIwKh2+MKT9EcGr9yT/mg== X-UI-Out-Filterresults: notjunk:1; X-Virus-Checked: Checked by ClamAV on apache.org Ant is a build tool. For some tasks (for example javac, javadoc) the = tools from the Java _Development_ Kit are required. If you run with just a Java _Runtime_ Environment most of its tasks = could be used, but not all - hence the warning. Set your JAVA_HOME to the installation path of your JDK. http://ant.apache.org/manual/install.html#installing "Optionally, set the JAVA_HOME environment variable (see the Advanced section below). This should be set to the directory where your JDK is installed." http://ant.apache.org/manual/install.html#advanced "When you need JDK functionality (such as for the javac task or the rmic task), then tools.jar must be added. The scripts supplied with Ant, in = the bin directory, will add the required JDK classes automatically, if the JAVA_HOME environment variable is set." Jan > -----Urspr=FCngliche Nachricht----- > Von: Soni, Ashish IN BLR STS [mailto:ashish.soni@siemens.com] > Gesendet: Dienstag, 28. April 2015 06:41 > An: user@ant.apache.org; gruener.heinrich@web.de > Betreff: RE: tools.jar not found >=20 > In windows system, SET JAVA_HOME e.g. "SET JAVA_HOME=3DC:\Program = Files > (x86)\Java\jdk1.8.0_31" before running the ant build file. >=20 > -----Original Message----- > From: John J. Hughes II [mailto:johnhughes@function-g.com] > Sent: Monday, April 27, 2015 11:13 PM > To: 'Ant Users List'; gruener.heinrich@web.de > Subject: RE: tools.jar not found >=20 > Run what with JDK? >=20 > Run it with the jdk. > Am 27.04.2015 um 18:26 schrieb John J. Hughes II: > > 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 =3D .;%JAVA_HOME%\bin;%ANT_HOME%\bin; > > > > Converts to: > > > > PATH =3D .;C:\Program > > Files\Java\jdk1.8.0_05\bin;C:\devenv\apache-ant-1.9.4\bin; > > > > > > > > C:\Projects>SET JAVA_HOME > > > > JAVA_HOME=3DC:\Program Files\Java\jdk1.8.0_05 > > > > > > > > C:\Projects>SET ANT_HOME > > > > ANT_HOME=3DC:\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 > > > > > > > > >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional > commands, e-mail: user-help@ant.apache.org >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional > commands, e-mail: user-help@ant.apache.org >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional > commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org