I need to compile a Java program on the command line, and I am trying to set the compiler level to a lower one (1.6). I tried like this but it didn't work:
javac -1.6 Hello.java
Use -source
and -target
options:
javac -target 1.6 -source 1.6 Hello.java