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
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
Some times, You want to upgrade or downgrade Intelli java runtime version Here are steps to do
- Go to
HelpMenu and Select
Find Actionitem or Shortcut is
Ctrl + Shift + A.
- It opens search box as like below and type
Choose Boot Java Runtime for the IDE
- Select this, popup window opened like below
- 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
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>