Where JDK Location Unix
There is no standard location defined where to install JDK on Linux/Unix box. But as per oracle it install JDK in /usr/jdk/ as default location same as window where default location of installation is C:\Program Files\Java. To find quickly installation directory of JDK you could use below command:
- type javac
- which javac
JavaHonk $ type javac javac is /usr/bin/javac JavaHonk $ which javac /usr/bin/javac
- To find manually JDK installation folder please search in below directories:
/usr/jdk /usr/java /usr/java/jdk /usr/lib/jvm/java /usr/lib/jvm/j2se /usr/lib/jvm/j2sdk /usr/lib/jvm/jdk /usr/lib/java /usr/lib/j2se /usr/lib/j2sdk /usr/lib/jdk /usr/local/java /usr/local/java/jdk /usr/local/jdk /usr/j2se /usr/j2sdk /opt/jdk /opt/java
- For more information on Unix command please visit Wikipedia