How to Change Java version in Intelli


In this blog post, You are going to learn changing java version for

  • Intelli Boot Run time to start application
  • Intelli java project
  • maven project.

How to change java version to the project in Intelli IDE?

Here are sequence of steps

  • Go to File menu

  • Select Project Structure, An popup window displayed as seen below Intelli Change java runtime version enable disable line number

  • Select SDKs under platform Settings

  • Change JDK version or add new versions and change to it

This way, It is very easy to change jdk version in latest Intelil 2021.1.2 Version.

How to change java runtime used to run Intelli IDE ?

Intelli IDE is an written in java and uses default java 11 as a runtime.

You can check current runtime version using Help Menu - About and displays popup as follows Intelli Change java runtime version

Some times, You want to upgrade or downgrade Intelli java runtime version Here are steps to do

  • Go to Help Menu and Select Find Action item or Shortcut is Ctrl + Shift + A.
  • It opens search box as like below and type Choose Boot Java Runtime for the IDE
Intelli Change java runtime version
  • Select this, popup window opened like below
Intelli Change java runtime version
  • It shows Current and new version, Please select value from new dropdown and clicks Ok
  • Finally Restarts Intelli to take new boot runtime

How to change java version in maven project in Intelli ?

In maven project opened in Intelli IDE, Open pom.xml

add maven-compiler-plugin to pom.xml with source and target versions to valid JDK version

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>3.8.1</version>
      <configuration>
        <source>1.12</source>
        <target>1.12</target>
      </configuration>
    </plugin>
  </plugins>
</build>
THE BEST NEWSLETTER ANYWHERE
Join 6,000 subscribers and get a daily digest of full stack tutorials delivered to your inbox directly.No spam ever. Unsubscribe any time.

Similar Posts
Subscribe
You'll get a notification every time a post gets published here.