i am trying to run a wordcount job in hadoop.but always getting a class not found exception.I am posting the class that i wrote and the command i using to run the job
try job.setJar("wordcount.jar");, where wordcount.jar is the jar file that you are going to package to.
This method works for me, but NOT setJarByClass!