IT/Linux
[Linux] Open jdk 경로 찾기
Bamdule
2021. 4. 27. 10:43
해당 테스트는 Cent OS7의 open-jdk 1.8을 기준으로 진행했습니다.
# which java
/usr/bin/java
# ll /usr/bin/java
lrwxrwxrwx. 1 root root 22 Apr 25 22:19 /usr/bin/java -> /etc/alternatives/java
# ll /etc/alternatives/java
lrwxrwxrwx. 1 root root 73 Apr 25 22:19 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.x86_64/jre/bin/java
# cd /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.x86_64/
# ls
ASSEMBLY_EXCEPTION bin include jre lib LICENSE tapset THIRD_PARTY_README