error java_home is not defined correctly linux redhat code example Example: JAVA_HOME is not defined correctly. export JAVA_HOME=$(/usr/libexec/java_home)