title: The type Mapper is not generic; it cannot be parameterized with arguments <LongWritable, Text, Text, IntWritable>
body: <p>What could be the reason for the error? I am able to successfully compile on mac eclipse. But not on hadoop server which is running CDH4.</p>
  
  <p>root@hadoop]# javac -cp /usr/lib/hadoop/hadoop-common.jar:/usr/lib/hadoop/client-0.20/commons-cli-1.2.jar:/usr/lib/hadoop/client-0.20/hadoop-core-2.0.0-mr1-cdh4.1.3.jar WordCount.</p>
  
  <pre><code>1. ERROR in WordCount.java (at line 12)
  public static class Map extends MapReduceBase implements Mapper &lt;LongWritable, Text, Text, IntWritable&gt; 
  </code></pre>
  
  <p>The type Mapper is not generic; it cannot be parameterized with arguments &lt; LongWritable, Text, Text,  ></p>
  
  <pre><code>2. ERROR in WordCount.java (at line 12)
  public static class Map extends MapReduceBase implements Mapper &lt;LongWritable, Text, Text, IntWritable&gt; {
  </code></pre>
  
  <p>Syntax error, parameterized types are only available if source level is 5.0</p>