It wouldn't work since ANT looks for JAVA_HOME.
--
David Nemer
Sent from Kaiserslautern, RP, Germany

On Fri, May 15, 2009 at 11:55 PM, Francis Galiegue <f...@one2team.com> wrote:

> Le Friday 15 May 2009 23:50:50 David Nemer, vous avez écrit :
> > 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 = 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
> environment
> > 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
> look
> > 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?
>
> --
> Francis Galiegue
> f...@one2team.com
> Ingénieur système
> Mob : +33 (0) 683 877 875
> Tel : +33 (0) 178 945 552
> One2team
> 40 avenue Raymond Poincaré
> 75116 Paris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
>
>

Reply via email to