IntelliJ IDEA tips & tricks

  1. Setting JAVA version
  2. 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

  1. File > Settings > Build, Execution, Deployment > Java Compiler
  2. 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>

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *