SonarLint for IntelliJ: How to use a different JRE

  • Operating system: Windows 10
  • IntelliJ version: 2024.1.2
  • SonarLint plugin version:

The SonarLint plugin seems to use the JRE used by IntelliJ (i.e. JBR with JCEF 17.x).
For some reason (don’t ask with) I can execute IntelliJ through its idea64.exe, but I am not allowed to execute the java.exe from that JBR directly.

This causes SonarLint to fail when IntelliJ is run with its JBR. However, when I change the “Boot Runtime for the IDE” to a JRE authorized by my company (e.g. zulu 17), SonarLint works fine.
The issue is now that IntelliJ lacks some features of its own JBR such as nice windows decoration and the ability to render previews for markdown of asciidoc files.

My question is then: How can I change the JRE used by SonarLint without changing the JRE used by Intelli?