ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Launching a different java executable from within ant
Date Thu, 20 Aug 2009 05:13:53 GMT
<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


Mime
View raw message