how to echo java_home in windows cmd

Java
echo %JAVA_HOME% 
Source

Also in Java: