java -version 和 java_home 不一样
PHP中文网
PHP中文网 2017-04-18 09:15:52
0
3
346

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
巴扎黑

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

  1. First search from the current directory

  2. 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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!