Java not found and JAVA_HOME environment variable is not set. code example
Example: set java home path
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# Add JAVA bin directory to the PATH variable
export PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# Add JAVA bin directory to the PATH variable
export PATH=$PATH:$JAVA_HOME/bin