Home:ALL Converter>Updated java installation cannot be located in centos6

Updated java installation cannot be located in centos6

Ask Time:2022-01-13T18:11:08         Author:Sharmaji

Json Formatter

i have to update the Tomcat from 7 to 9 as per VAPT requirements, so i did that on my centos6 linux server. But the tomcat 7 was running with java 1.7 openjdk and when i start tomcat 9 there are no logs.

I researched and realised i need to use a newer java version. So i did yum java update and installed jdk 11 . But the echo JAVA_HOME is empty on the server. How can i find the installation directory or this new java in my os?

I checkthe old java version was at /usr/java but new one is not there or around it. What is the default installation of java in centos6 ??

Author:Sharmaji,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/70694797/updated-java-installation-cannot-be-located-in-centos6
Monali Ghotekar :

To get all installed java version give command : sudo alternatives --config java , this will list all available java version and you can set default by choosing the correct one.\nyou will also get the actual installation path corresponding to each version and can set your java_home accordingly.\nFor more information you can refer here",
2022-01-13T11:15:53
yy