which java
会输出结果
/usr/bin/java
然后
ls -lrt /usr/bin/java
根据结果在输入
ls -lrt /etc/alternatives/java
OK,找到安装路径