Recent Posts
Archives

PostHeaderIcon IntelliJ IDEA: javac: source release 1.6 requires target release 1.6

Case

After my Java project upgrade from “Tiger” to “Mustang”, I tried to launch a “make module” within IntelliJ IDEA. I got this message

[java]javac: source release 1.6 requires target release 1.6[/java]

Fix

In IntelliJ IDEA, go to:
File > Settings > Compiler > Java Compiler > remove > Additional command line parameters > remove the parameter -target 1.5

Leave a Reply