Where is JDK located in Linux?
Answer
This depends a bit from your package system … if the java command works, you can type readlink -f $(which java) to find the location of the java command. On the OpenSUSE system I’m on now it returns
/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/ jre/bin/java (but this is not a system which uses apt-get ).
Answer
This depends a bit from your package system … if the java command works, you can type readlink -f $(which java) to find the location of the java command. On the OpenSUSE system I’m on now it returns
/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/ jre/bin/java (but this is not a system which uses apt-get ).