You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Knuplesch, Jürgen <Ju...@icongmbh.de> on 2007/10/09 18:16:39 UTC

Javac

Hi,

I want to use ANT with on a machine with several JDKs and JREs.

How can I tell ANT which compiler to choose, without setting JAVA_HOME?

The standard JAVA is a JRE, and so the compile task doesnt work at all.

Greetings



-- 
Jürgen Knuplesch                    www.icongmbh.de
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstraße 40                    
D-70178 Stuttgart                   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Javac

Posted by Sunil Prabhakaran <su...@gmail.com>.
hi

Alternatively you can try setting the executable attribute in <javac/> task

regards
sunil prabhakaran

On 10/9/00, Martin Gainty <mg...@hotmail.com> wrote:
> http://ant.apache.org/manual/running.html
>
> ant -Djava.home=
>
> Martin--
> ----- Original Message -----
> From: <Knuplesch>; "Jürgen" <Ju...@icongmbh.de>
> To: <us...@ant.apache.org>
> Sent: Tuesday, October 09, 2007 12:16 PM
> Subject: Javac
>
>
> Hi,
>
> I want to use ANT with on a machine with several JDKs and JREs.
>
> How can I tell ANT which compiler to choose, without setting JAVA_HOME?
>
> The standard JAVA is a JRE, and so the compile task doesnt work at all.
>
> Greetings
>
>
>
> --
> Jürgen Knuplesch                    www.icongmbh.de
> icon Systemhaus GmbH                Tel. +49 711 806098-275
> Sophienstraße 40
> D-70178 Stuttgart                   Fax. +49 711 806098-299
>
> Geschäftsführer: Uwe Seltmann
> HRB Stuttgart 17655
> USt-IdNr.: DE 811944121
>
> ---------------------------------------------------------------------
> 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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org