Hello All!
This is the first time I have actually needed to cross-compile my code for a different JVM version, and I'm having a few problems. If using
Java 6 version of javac:
If I try the following command, all is well (@sourcefiles is a list of files to compile):
javac -d build/ -target 1.5 @sourcefiles
But, this command fails:
javac -d build/ -target 1.4 @sourcefiles
with the error: javac: target release 1.4 conflicts with default source release 1.5
Ignoring the bug in the error message about "default source release 1.5" (should be 1.6), does anyone know why I cannot compile for 1.4? I know to use the -bootclasspath to compile against the 1.4 version of rt.jar, I just left it off for clarity.
Thanks,
Darrin