This is a sample of how I try to javac in 1.1.8 with 1.4 as my standard VM for ANT (through IDEA). If anyone knows how to ensure that the VM for the java task is 1.1.8 please share, I am having trouble getting the java command to run in 1.1.8. The help pages on ANT's java task say to set fork="true" to run in a different VM than the main ANT VM. But can't figure out to saw what VM that is.
<target name="robscompile" depends="init">
<javac srcdir="${src}"
destdir="${build}"
fork="yes"
executable="c:/jdk1.1.8/bin/javac"
compiler="javac1.1"
verbose="yes"
target="1.1"
memorymaximumsize="128m"
memoryinitialsize="128m"
/>
</target>