How to Find JAVA_HOME

Submitted by admin on Sat, 05/04/2019 - 10:25

Execute the below command:-

 

[root@cm ~]# java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home'
    java.home = /usr/java/jdk1.8.0_181-amd64/jre