You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Francis GALIEGUE <fg...@one2team.com> on 2009/08/19 17:17:23 UTC
Launching a different java executable from within ant
Hello,
I have a very annoying problem. We have a jar, with a main class,
which is called as such:
<java classname="the.main.class" fork="true" failonerror="true">
<jvmarg value="-Djava.awt.headless=true"/>
<jvmarg value="-Djava.awt.headlesslib=true"/>
<!-- classpath and other arguments here -->
</java>
This is run on a 64bit Linux machine, with a 32bit JVM. The JVM is
either java 1.4 or java 6.
With java 1.4, and despite the use of java.awt.headless and
java.awt.headlesslib on the command line, each of these commands take
more than one minute to complete, with only a few seconds of useful
work. It seems to be stuck trying to do something, I don't know what.
If java 6 is used, there is no such problem.
So, is there a way to tell ant, apart from using a shell script, that
for this particular java task, we want a different JAVA_HOME and/or
JDK_HOME?
Thanks,
--
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Launching a different java executable from within ant
Posted by Francis GALIEGUE <fg...@one2team.com>.
On Thu, Aug 20, 2009 at 07:13, <Ja...@rzf.fin-nrw.de> wrote:
> <java jvm="path/to/java6/bin/java(.exe)">...
>
It did the trick, thanks! I thought it would be more complicated than that...
--
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
AW: Launching a different java executable from within ant
Posted by Ja...@rzf.fin-nrw.de.
<java jvm="path/to/java6/bin/java(.exe)">...
Jan
>-----Ursprüngliche Nachricht-----
>Von: Francis GALIEGUE [mailto:fge@one2team.com]
>Gesendet: Mittwoch, 19. August 2009 17:17
>An: Ant Users List
>Betreff: Launching a different java executable from within ant
>
>Hello,
>
>I have a very annoying problem. We have a jar, with a main class,
>which is called as such:
>
><java classname="the.main.class" fork="true" failonerror="true">
> <jvmarg value="-Djava.awt.headless=true"/>
> <jvmarg value="-Djava.awt.headlesslib=true"/>
> <!-- classpath and other arguments here -->
></java>
>
>This is run on a 64bit Linux machine, with a 32bit JVM. The JVM is
>either java 1.4 or java 6.
>
>With java 1.4, and despite the use of java.awt.headless and
>java.awt.headlesslib on the command line, each of these commands take
>more than one minute to complete, with only a few seconds of useful
>work. It seems to be stuck trying to do something, I don't know what.
>If java 6 is used, there is no such problem.
>
>So, is there a way to tell ant, apart from using a shell script, that
>for this particular java task, we want a different JAVA_HOME and/or
>JDK_HOME?
>
>Thanks,
>--
>
>Francis Galiegue
>ONE2TEAM
>Ingénieur système
>Mob : +33 (0) 683 877 875
>Tel : +33 (0) 178 945 552
>fge@one2team.com
>40 avenue Raymond Poincaré
>75116 Paris
>
>---------------------------------------------------------------------
>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