Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 15057 invoked from network); 15 May 2009 21:55:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 May 2009 21:55:05 -0000 Received: (qmail 11595 invoked by uid 500); 15 May 2009 21:55:04 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 11507 invoked by uid 500); 15 May 2009 21:55:04 -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 11497 invoked by uid 99); 15 May 2009 21:55:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2009 21:55:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [213.251.185.197] (HELO ns35774.ovh.net) (213.251.185.197) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2009 21:54:54 +0000 Received: from smtp.olympe.o2t (138.193.65-86.rev.gaoland.net [86.65.193.138]) by ns35774.ovh.net (Postfix) with ESMTP id 6A0C492C002 for ; Fri, 15 May 2009 23:54:20 +0200 (CEST) Received: from erwin.kitchen.eel (unknown [10.8.0.6]) by smtp.olympe.o2t (Postfix) with ESMTP id 6351A2F2C5 for ; Fri, 15 May 2009 23:54:32 +0200 (CEST) From: Francis Galiegue Organization: One2team To: "Ant Users List" Subject: Re: Java in JDK but ANT can't find it! Date: Fri, 15 May 2009 23:55:00 +0200 User-Agent: KMail/1.9.9 References: <8d623a000905140515vc6874b3i81a651d5bbb809e0@mail.gmail.com> <8d623a000905151450o6a8421f5w4edef1aad3ac337d@mail.gmail.com> In-Reply-To: <8d623a000905151450o6a8421f5w4edef1aad3ac337d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200905152355.00506.fge@one2team.com> X-Virus-Checked: Checked by ClamAV on apache.org Le Friday 15 May 2009 23:50:50 David Nemer, vous avez =E9crit=A0: > Hey all, > > Well, I did some testing, and I tried to run this simples Java code: > > public static void main(String args[]){ > > String JAVA_HOME =3D System.getProperty("java.home"); > System.out.println(JAVA_HOME); > > } > > And it prints out: /opt/jdk1.6.0_06/jre > > So, as Ashley said before, it is not an Ant's problem, it is an environme= nt > or Java problem. > > But, I checked, both, bash_profile and bashrc, and they all point to > /opt/jdk1.6.0_06, no JRE at all. So I was wondering where else could I lo= ok > at so I can find where this JRE is set. > > Does anyone know where the method System.getProperty goes to get the > java.home? Like a file or something like that?? > What about JDK_HOME? =2D-=20 =46rancis Galiegue fge@one2team.com Ing=E9nieur syst=E8me Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 One2team 40 avenue Raymond Poincar=E9 75116 Paris --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org