Should JAVA_HOME point to JDK or JRE?

前端 未结 8 2091
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 00:09

I pointed the JAVA_HOME to C:\\Program Files (x86)\\Java\\jre7. It works fine. Afterwards, I unzipped ant and set up the environment variables rela

8条回答
  •  时光说笑
    2020-12-03 00:41

    You can use either the JDK or the JRE but:

    JAVA_HOME is used by the launcher for finding the JDK/JRE to use. (JDK is recommended as some tasks require the java tools.)
    . ANT_HOME setting

提交回复
热议问题