84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
认证高级PHP讲师
java -version is the command line statement of java. JAVA_HOME is the java environment path
What you need to look at is not java_home but the directory of /bin/java that appears first in the path variableUnderstand the search order
First search from the current directory
If you can’t find it, search it from the directory in the current path variable. If you find it, call and return
1.JAVA_HOME is the path to the jdk that you set in path. echo %java_home% 就是打印 jdk所在路径.2.java -version is the version of java that is printed, which is the command line statement of java.
echo %java_home%
java -version
java -version is the command line statement of java. JAVA_HOME is the java environment path
What you need to look at is not java_home but the directory of /bin/java that appears first in the path variable
Understand the search order
First search from the current directory
If you can’t find it, search it from the directory in the current path variable. If you find it, call and return
1.JAVA_HOME is the path to the jdk that you set in path.
echo %java_home%
就是打印 jdk所在路径.2.
java -version
is the version of java that is printed, which is the command line statement of java.