Ubuntu 下搜索jdk安装位置

前端之家收集整理的这篇文章主要介绍了Ubuntu 下搜索jdk安装位置前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。


1、Ubuntu 下搜索jdk安装位置

which javac
返回/usr/bin/javac
file /usr/bin/javac
返回/usr/bin/javac: symbolic link to `/etc/alternatives/javac'
然后file /etc/alternatives/javac
返回/etc/alternatives/javac: symbolic link to `/usr/lib/jvm/java-6-sun/bin/javac'
然后file /usr/lib/jvm/java-6-sun/bin/javac
返回/usr/lib/jvm/java-6-sun/bin/javac: ELF 32-bit LSB executable,Intel 80386,version 1 (SYSV),dynamically linked (uses shared libs),for GNU/Linux 2.2.5,not stripped
到此为止,说明路径是/usr/lib/jvm/java-6-sun/bin/

2、

猜你在找的Ubuntu相关文章