Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build the java project target as 1.5 by 1.6 JDK with Intellij IDEA?

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

like image 733
sureone Avatar asked May 11 '13 02:05

sureone


People also ask

How do I change the target bytecode version in IntelliJ?

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.

How do I point to JDK in IntelliJ?

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.


1 Answers

Bytecode version can be controlled per project or per module:

bytecode version

like image 182
CrazyCoder Avatar answered Oct 01 '22 10:10

CrazyCoder