The “choose JRE” feature has been added to the Eclipse plugin but not to IntelliJ.
It would be great to be able to choose the JRE in IntelliJ too. Without this feature, the plugin is unusable in my situation.
Hi Elvy,
Thank you for drawing our attention to this again. We indeed still have this issue under our radar but it hasn’t been prioritized yet due to a low number of complaints. I will keep you updated as soon as we can tackle it.
Hey @Pigelvy, I HAD to do it since you mentioned the coffee.
Jokes aside, we will introduce a new system property in the next release to let you use the JRE you want for SonarLint. I will get back to you with more information, which will be documented in our official documentation section.
Hey @Pigelvy, we have just released SonarLint 10.12. You should be able to provide a custom JRE by passing the following system property: sonarlint.jre.path
It is similar to the JAVA_HOME environment variable. To pass JVM options, follow the JetBrains documentation. Also, please provide a JRE that is at least Java 17.
Having the JRE path configurable directly from the SonarLint settings would increase its visibility and make it “more explicite” (kind of)
Since you are the only user who reported this issue, we didn’t want to put something intrusive in the settings. We believe that using the embedded JRE from the IDE is normal behavior; in your case, it’s a rare exception. Eclipse has a dedicated UI for this because of the nature of the IDE—many companies tend to build their own IDE on top of Eclipse with many restrictions, which leads to complicated use cases.