I lost track of the installation directory on the server for various reasons.
This is OK if you are using the version you are currently using (the version that works with the java command).
$ printenv JAVA_HOME /usr/java/default
If the version you are currently using (the version that works with the java command) does not have
JAVA_HOME, this is OK.
$ printenv PATH | sed -e 's/:/:\n/g' | grep java /usr/java/default/bin:
It's common to have multiple versions installed.
When you want to find a version of Java that is not set to
#Check installed packages from version $ yum list installed | grep java-1.7 java-1.7.0-openjdk.x86_64 1:18.104.22.168-22.214.171.124.el6_9 java-1.7.0-openjdk-devel.x86_64 #Check the installation directory $ rpm -ql java-1.7.0-openjdk-devel.x86_64 | grep bin /usr/lib/jvm/java-1.7.0-openjdk-126.96.36.199.x86_64/bin /usr/lib/jvm/java-1.7.0-openjdk-188.8.131.52.x86_64/bin/appletviewer ...abridgement...