Towards the “true” definition of JAVA_HOME

前端 未结 5 1131
青春惊慌失措
青春惊慌失措 2020-12-06 17:17

As a Java developer who switches between *NIX systems (OS X, Ubuntu, ...), although I can always \"get\" my JDK up and running, it seems that there is no clear definition of

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-06 18:03

    I don't know about what it is set to on different systems, but JAVA_HOME should be set to the root of the java installation. So if you have it installed to

    C:\Program Files\Java\jdk1.6.0_25\

    JAVA_HOME should be set to that.

    Similar to JDK_HOME if you see that in writing.

提交回复
热议问题