Hadoop Error Could not find or load main class com sun tools javac Main
I am trying to compile my java file using hadoop but when i do that, i get the following error:
Error: Could not find or load main class com.sun.tools.javac.Main
How to fix error: could not find or load main class com.sun.tools.javac.main?
It looks like your path is not set right. Try this:
export HADOOP_CLASSPATH=$JAVA_HOME/lib/tools.jar