IntelliJ — multiple configurations of Java JDK and JRE version in the project that might not align

Problem Statement

I have a project that managed in VS Code before and start running it in IntelliJ. Even the application properties stated the java version, IntelliJ seems to have some other configuration so that the build (JDK related, I suppose) or the run (JRE related, I suppose) are not using that specified version.

The Configurations

specified using java version 1.8

Setting the SDK version, also setting the Project language support to be the same, I choose to use SDK default for Project language level, and in future if I need to change SDK version, this one would keep align.

Choosing language level with project default

Setting the JDK for importer to use project JDK, this make the maven to build with proper JDK (I suppose)

JDK for importer at bottom




Love podcasts or audiobooks? Learn on the go with our new app.

21 days of Code with Code Warriors — Day 7

Building a Design System implementation using Jetpack Compose — Part1

How to solve a Data Structure Algorithm Question ?

Enterprise Scale Threat Hunting: C2 Beacon Detection with Unsupervised ML and KQL — Part 2

The Shadow IT Conundrum

6 Concepts to Master Codeless Automation

Production Deferment: The Root of Fire Fighting Operations

Create build with Jenkins

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Stephen Cow Chau

Stephen Cow Chau

More from Medium

Vlog: Java + Containers = ❤

Good practise to use Equals and Hashcode Method in Hibernate

Spring Cloud useful annotations and explanations that are worth knowing for developing…

Lets create a java sample project part 1