How JetBrain IntelliJ IDEA select Java to bootup

后端 未结 3 554
情歌与酒
情歌与酒 2021-02-06 12:43

I have install Java 8 EA on my Window 7, but it\'s neither in my %JAVA_HOME% nor in the %PATH%. However when I start my IntelliJ IDEA v12 by clicking <

3条回答
  •  伪装坚强ぢ
    2021-02-06 13:16

    It was picked from the registry.

    When launched from .exe IDEA looks for Java in a following order:

    1. IDEA_JDK (or IDEA_JDK_64) environment variable
    2. jre/ (or jre64/) directory in IDEA home
    3. registry
    4. JDK_HOME environment variable
    5. JAVA_HOME environment variable

    When launched from .bat the order is same but registry isn't looked, and 64-suffixed vars aren't used (what is probably a bug).

提交回复
热议问题