What is JAVA_HOME? How does the JVM find the javac path stored in JAVA_HOME?

前端 未结 9 1600
情深已故
情深已故 2020-11-28 03:40

I would like to know what is JAVA_HOME. Where do I set the path of javac.exe and java.exe. It is in environment variables. When I compile a Java program from command prom

9条回答
  •  粉色の甜心
    2020-11-28 04:25

    JAVA_HOME is an Environment Variable set to the location of the Java directory on your computer. PATH is an internal DOS command that finds the /bin directory of the version of Java that you are using. Usually they are the same, except that the PATH entry ends with /bin

提交回复
热议问题