How to check the path of jdk under linux

The path under windows
D:\worktools\java\jdk1.8 I
Insert picture description here
want to find a jdk path consistent with him under linux

Insert picture description here

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
Insert picture description here

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_41665637/article/details/110948085