>
>
>Does anyone know how to set another JDK to compile when using Ant in
>JBuilder 7?
>
>
>
setting JAVA_HOME will work only if you kick off your builds from the
command-line.
When running within JBuilder the JAVA_HOME is reset to the same one
JBuilder uses to run.
To get around this problem I used the new (Ant1.5) ability to set the
compiler in the javac task..
<javac srcdir="${src}"
destdir="${build}"
fork="yes"
executable="/opt/java/jdk1.1/bin/javac"
compiler="javac1.1"
/>
Not as nice as it could be, but it works.
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
|