Error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib/jvm/java-8-oracle/bin/java code example
Example: JAVA_HOME is not defined correctly.
export JAVA_HOME=$(/usr/libexec/java_home)
export JAVA_HOME=$(/usr/libexec/java_home)