<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Erreur :  java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Erreur-java-lang-NoClassDefFoundError-org-json-simple-parser/m-p/2199432#M2347</link>
    <description>&lt;P&gt;Have you configured your routine with the correct Jars? To do this, right click on the routine and select "Edit Routine Libraries". A window will appear where you can add libraries to support your code in the routine.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Sep 2018 11:23:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-18T11:23:29Z</dc:date>
    <item>
      <title>Erreur :  java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Erreur-java-lang-NoClassDefFoundError-org-json-simple-parser/m-p/2199431#M2346</link>
      <description>&lt;P&gt;Bonjour les amis,&lt;/P&gt; 
&lt;P&gt;J'ai un code java qui permet de récupérer les clés et les valeurs de fichier json avec un code java sous talend car mon fichier contient une partie dynamique et j'arrive pas à trouver un composant dans talend pour résoudre mon problème.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;J'ai reçu l'erreur suivant &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;La plupart des explications que j'ai trouvé disent que les jars JSON installé dans Talend sont incorrects.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;J'ai supprimé les jars et j'ai ajouté des autres jars recommandés mais le problème existe encore mais j'ai un doute que je n'ai pas supprimé réellement les mauvais JARS&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;Avez vous une idée comment je peux nettoyer Talend et installer du nouveau les jars JSON.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;Le code Java&amp;nbsp; : &lt;/FONT&gt;&lt;/P&gt; 
&lt;PRE&gt;package routines;
import java.io.FileReader;
import org.json.simple.JSONObject;
import org.json.simple.parser.*;

public class getKeyFromFile { 
	    public static void main(String filepath) {
	        JSONParser parser = new JSONParser();
	        try {
	            Object obj = parser.parse(new FileReader( filepath));
	            printJSON((JSONObject) obj);
	        } catch (Exception e) {
	            e.printStackTrace();
	        }   }
	       
 public static void printJSON(JSONObject jsonObj) {
	            for (Object keyObj : jsonObj.keySet()) {
	                String key = (String)keyObj;
	                Object valObj = jsonObj.get(key);
	                if (valObj instanceof JSONObject) {
	                    // call printJSON on nested object
	                	printJSON((JSONObject) valObj);
	                } else {
	                    // print key-value pair
	                    System.out.println("key : "+key);
	                    System.out.println("value : "+valObj.toString());
	                }          }        }       }&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 10:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Erreur-java-lang-NoClassDefFoundError-org-json-simple-parser/m-p/2199431#M2346</guid>
      <dc:creator>rid_rj</dc:creator>
      <dc:date>2018-09-18T10:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Erreur :  java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Erreur-java-lang-NoClassDefFoundError-org-json-simple-parser/m-p/2199432#M2347</link>
      <description>&lt;P&gt;Have you configured your routine with the correct Jars? To do this, right click on the routine and select "Edit Routine Libraries". A window will appear where you can add libraries to support your code in the routine.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 11:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Erreur-java-lang-NoClassDefFoundError-org-json-simple-parser/m-p/2199432#M2347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-18T11:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Erreur :  java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Erreur-java-lang-NoClassDefFoundError-org-json-simple-parser/m-p/2199433#M2348</link>
      <description>&lt;P&gt;Thanks you, your solution fixed my problem &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 13:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Erreur-java-lang-NoClassDefFoundError-org-json-simple-parser/m-p/2199433#M2348</guid>
      <dc:creator>rid_rj</dc:creator>
      <dc:date>2018-09-18T13:18:56Z</dc:date>
    </item>
  </channel>
</rss>

