The path under windows
D:\worktools\java\jdk1.8 I
want to find a jdk path consistent with him under linux
java -version
echo $JAVA_HOME
which java
ls -lrt /usr/bin/java
ls -l /etc/alternatives/java
The path of jdk is the path before jre