I am working on a project which must be deploy in the 1.5 runtime environment. So does anyone know how to build the project target as 1.5 by 1.6 JDK with Intellij IDEA, and My development is Mac OSX 10.8 and JDK 1.6
I went into Settings>Build, Execution, Deployment>Compiler>Java and saw that the target bytecode version for one of my modules was set to 1.5, so I changed it to 1.8, compiled, and it worked.
From the main menu, select File | Project Structure | Project Settings | Project. If the necessary JDK is already defined in IntelliJ IDEA, select it from the SDK list.
Bytecode version can be controlled per project or per module:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With