no JDK found – please set JAVA_HOME … failed!

แก้ไข

/etc/bash.bashrc

เพิ่ม

#Java Environment Variable
JAVA_HOME=/usr/lib/jvm/jdk1.7.0/
export JAVA_HOME
JRE_HOME=/usr/lib/jvm/jdk1.7.0/jre
export JRE_HOME
PATH=$PATH:$JAVA_HOME:$JRE_HOME
export PATH

ถ้าเป็น JAVA 8

#Java Environment Variable
JAVA_HOME=/usr/lib/jvm/jdk1.8.0/
export JAVA_HOME
JRE_HOME=/usr/lib/jvm/jdk1.8.0/jre
export JRE_HOME
PATH=$PATH:$JAVA_HOME:$JRE_HOME
export PATH