Search code examples
intellij-idea

How to know what JDK IntelliJ IDEA is using


I have looked at:

https://intellij-support.jetbrains.com/hc/en-us/articles/206827547-Selecting-the-JDK-version-the-IDE-will-run-under

and

https://intellij-support.jetbrains.com/hc/en-us/articles/206827537-Configuring-JVM-options-and-platform-properties

How can I know what version and path of JDK my IntelliJ IDEA is using? I have tried setting the environment variable IDEA_JDK. But I am not sure which version of JDK the IDE is picking up. is there a log I could see to verify this?

System information

IntelliJ-IDEA 15
Windows 7, 64 bit

Solution

  • Please look at the https://intellij-support.jetbrains.com/hc/en-us/articles/206827517-Locating-IDE-log-files to locate the log file which has the command used to start Intellij IDEA

    For example, on OSX, ~/Library/Logs/IntelliJIdea15/idea.log has the following:

    2015-10-17 16:26:52,339 [   1086]   INFO -        #com.intellij.idea.Main - JRE: 1.8.0_40-release-b94 (JetBrains s.r.o)
    2015-10-17 16:26:52,339 [   1086]   INFO -        #com.intellij.idea.Main - JVM: 25.60-b23 (OpenJDK 64-Bit Server VM)
    2015-10-17 16:26:52,378 [   1125]   INFO -        #com.intellij.idea.Main - JVM Args: <snip>
    

    If you don't have the Help -> Show log in explorer option, then please search for the file at c:\Users\Auyshman\.IntelliJIdea15\system\log\idea.log

    Another alternative is to use Process Explorer and add/enable the column called 'Image Path' to see the complete path of the process for Intellij. This should show the JDK/JRE being used to invoke Intellij as well.