IntelliJ IDEA tips & tricks
- Setting JAVA version
- Coming soon…
1. Setting JAVA version
Method 1
- press:CTRL + SHIFT + A (For Mac
command + shift + A
) - type: java compiler
- press: ENTER
In the setting window set the Target bytecode to 1.8
Method 2
- File > Settings > Build, Execution, Deployment > Java Compiler
- Change Target bytecode version to 1.8 of the module that you are working for.
If you are using Maven
Add this to pom.xml
under the top-level project
node:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build>