title: hadoop class path
body: <p>I am trying to run some unit tests for mapper and reducer using junit and mockito.<br>
  Do I have to specify the location of the hadoop core and commons jar files in classpath everytime I run a test?.<br>
  I thought running the "hadoop" command was supposed to automatically include all the required libraries at runtime. Is there anyway to avoid typing the hadoop dependencies everytime?.</p>
  
  <pre><code>hadoop -cp /home/xxx/Downloads/mockito-all-1.9.5.jar:/home/xxx/Downloads/junit-4.10.jar:/home/xxx/Downloads/hadoop-1.1.1/hadoop-core-1.1.1.jar:./classes:.:/home/xxx/Downloads/hadoop-1.1.1/lib/commons-logging-1.1.1.jar org.junit.runner.JUnitCore MaxTemperatureMapperTest 
  </code></pre>