what is the reason for the existence of the JAVA_HOME environment variable?

environment-variables, java, java-home

Solution

The purpose is to point to where Java is installed. `$JAVA_HOME/bin/java` should execute the Java runtime.

Problem

Many java based application requires to set JAVA_HOME env variable. What's the purpose of this variable?

Original source

Related problems