JAVA_HOME 环境变量存在的原因是什么?

2022-01-15 00:00:00 environment-variables java java-home

许多基于 java 的应用程序需要设置 JAVA_HOME 环境变量.这个变量的作用是什么?

Many java based application requires to set JAVA_HOME env variable. What's the purpose of this variable?

推荐答案

环境变量是包含驱动器、路径或文件名等信息的字符串.

Environment variables are strings that contain information such as drive, path, or file name.

JAVA_HOME 环境变量 指向您计算机上安装 Java 运行时环境 (JRE) 的目录.

The JAVA_HOME environment variable points to the directory where the Java runtime environment (JRE) is installed on your computer.

相关文章