Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
Adding guava-11.0.2.jar to the build path solved the issue. This jar is in /share/hadoop/tools/lib folder. I have installed hadoop 2.4.0.
Make sure you have added the correct Jar to your build path..
My issue has been resolved by adding the following jar
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>13.0-rc1</version>
</dependency>