title: Hadoop: java.lang.ClassNotFoundException: org.json.simple.parser.ParseException
body: <p>Same question was asked three years back. But the answer is not solving my problem,it seems. According to the answer, I have added "json-simple-1.1.1" in ubuntu, in the lib "/usr/java/jdk1.6.0_26/lib". But my hadoop MR job is failing. I am using hadoop 0.20.2-cdh3u5. What I am doing wrong? Any help will be appreciated much.
  my mapper method in java. </p>
  
  <p><a href="https://i.stack.imgur.com/1T4wC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1T4wC.jpg" alt="enter image description here"></a>
  The failed output.
  <a href="https://i.stack.imgur.com/tlVXZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tlVXZ.jpg" alt="enter image description here"></a>
  The lib.
  <a href="https://i.stack.imgur.com/m4UWd.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m4UWd.jpg" alt="enter image description here"></a></p>
  
  <p>my input .text is one liner.
  {"name":"aaa", "title:"bbb"} .I tried with .json also did not work!</p>
  
  <p>I export the jar file from eclipse to ubuntu hadoop and run "hadoop jar JSONReadFromFileCheck.jar JSONReadFromFileCheck /inputpath /outputpath".</p>
  
  <p>I also put the json-simple-1.1.1.jar in hadoop as follows. Please see.</p>
  
  <p><a href="https://i.stack.imgur.com/dT764.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dT764.jpg" alt="enter image description here"></a></p>
  
  <p>jfyi, I ran a sample code in java as follows, it ran without a problem.</p>
  
  <pre><code>import org.json.simple.JSONObject;
  import org.json.simple.parser.JSONParser;
  import org.json.simple.parser.ParseException;
  
  public class jsoncheck {public static void main(String[] args) throws ParseException {
      String s = "{\"name\":\"aaa\",\"title\":\"bbb\"}";
          JSONObject json = (JSONObject) new JSONParser().parse(s);
          String vout = (String) json.get("title");System.out.println(vout);}}
  </code></pre>
  
  <p>I see that String does not accept double quote inside String, and jsonparser will not allow to remove double quote :-). I wonder when mapper gets input as text, in what format it receives!</p>