Javac Cross-Compilation with 1.7
So guys, I'm trying to play a bit with Javac Cross compilation with Ant and on terminal. Locally and on an integration environment and i'm having the same problem on the very basic problem. I run this in the linux terminal (and also on my cygwin on windows and the cmd): javac -target 1.6 -source 1.7 -bootclasspath /usr/java/jdk1.6.0_27/jre/lib/rt.jar Main.java with Main.java with nothing other than a System.out.println. javac -version ==> javac 1.7.0_11 I'm getting the error message: javac: source release 1.7 requires target release 1.7 I have roughly the same configuration on my local windows