ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis GALIEGUE <>
Subject Launching a different java executable from within ant
Date Wed, 19 Aug 2009 15:17:23 GMT

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 -->

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


Francis Galiegue
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
40 avenue Raymond Poincaré
75116 Paris

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message