title: How can i fix InputBootStrapper error in eclipse for runnig Hadoop program?
body: <p>How can i fix it ?
  This code is Hadoop WordCount example in JAVA.
  I have added the external JARs and this is not a compile time issue,
  When i have tried o run the program this is happening.
  The input and out put arguments are set.
  All the mangers are up and running.</p>
  
  <p>Hadoop version 2.9.0</p>
  
  <p>Java version 1.8.0</p>
  
  <p>Eclipse Oxygen</p>
  
  <p>OS Ubuntu 14.04 64bit </p>
  
  <p>What could be the issue?</p>
  
  <p>wordcount.java</p>
  
  <pre><code>package mapreduce;
  
  import java.io.IOException;
  import java.util.StringTokenizer;
  
  import org.apache.hadoop.conf.Configuration;
  import org.apache.hadoop.fs.Path;
  import org.apache.hadoop.io.IntWritable;
  import org.apache.hadoop.io.Text;
  import org.apache.hadoop.mapreduce.Job;
  import org.apache.hadoop.mapreduce.Mapper;
  import org.apache.hadoop.mapreduce.Reducer;
  import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
  import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
  
  public class wordcount {
  
  public static class TokenizerMapper
     extends Mapper&lt;Object, Text, Text, IntWritable&gt;{
  
  private final static IntWritable one = new IntWritable(1);
  private Text word = new Text();
  
  public void map(Object key, Text value, Context context
                  ) throws IOException, InterruptedException {
    StringTokenizer itr = new StringTokenizer(value.toString());
    while (itr.hasMoreTokens()) {
      word.set(itr.nextToken());
      context.write(word, one);
    }
  }
  }
  
  public static class IntSumReducer
     extends Reducer&lt;Text,IntWritable,Text,IntWritable&gt; {
  private IntWritable result = new IntWritable();
  
  public void reduce(Text key, Iterable&lt;IntWritable&gt; values,
                     Context context
                     ) throws IOException, InterruptedException {
    int sum = 0;
    for (IntWritable val : values) {
      sum += val.get();
    }
    result.set(sum);
    context.write(key, result);
  }
  }
  
  public static void main(String[] args) throws Exception {
  Configuration conf = new Configuration();
  Job job = Job.getInstance(conf, "word count");
  job.setJarByClass(wordcount.class);
  job.setMapperClass(TokenizerMapper.class);
  job.setCombinerClass(IntSumReducer.class);
  job.setReducerClass(IntSumReducer.class);
  job.setOutputKeyClass(Text.class);
  job.setOutputValueClass(IntWritable.class);
  FileInputFormat.addInputPath(job, new Path(args[0]));
  FileOutputFormat.setOutputPath(job, new Path(args[1]));
  System.exit(job.waitForCompletion(true) ? 0 : 1);
  }
  }
  </code></pre>
  
  <p>Console(Error)</p>
  
  <pre><code> Exception in thread "main" java.lang.NoClassDefFoundError: com/ctc/wstx/io/InputBootstrapper
      at mapreduce.wordcount.main(wordcount.java:51)
   Caused by: java.lang.ClassNotFoundException:  com.ctc.wstx.io.InputBootstrapper
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 1 more
  </code></pre>