I'm very new to ubuntu, I have installed java and while compiling nutch am getting this error.
BUILD FAILED /home/surukam/Desktop/Nutch/nutch/build.xml:101: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.
JAVA_HOME does not point to the JDK.
It is currently set to
I tried to check java location with
which java It shows /usr/bin/java. I tried to set java with
export JAVA_HOME=/usr/bin/java and tried to compile it shows
JAVA_HOME not set in this path, It accepts when i gave this
export JAVA_HOME=/usr. Now my question is I need to set my
JAVA_HOME in this path
JAVA_HOME="$(/usr/libexec/java_home -v 1.8)" and
NUTCH_JAVA_HOME="$(/usr/libexec/java_home -v 1.8)". can anyone help me with this ? Thanks in Advance.