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

前端 未结 9 1598
情深已故
情深已故 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:36

    JAVA_HOME is a environment variable (in Unix terminologies), or a PATH variable (in Windows terminology). A lot of well behaving Java applications (which need the JDK/JRE) to run, looks up the JAVA_HOME variable for the location where the Java compiler/interpreter may be found.

提交回复
热议问题