In case of Ubuntu, auto-export JAVA_HOME