<?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 add jar in routines but keep getting java.lang.NoClassDefFoundError:  error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307472#M78908</link>
    <description>&lt;P&gt;I created a routine and right click on that routine then edit routine libraries then add my own jar there. The jar is a very simple one I created myself and tested ok. Then when I import this jar in routine like&amp;nbsp;&lt;/P&gt;&lt;P&gt;import com.company.myclass&lt;/P&gt;&lt;P&gt;everything looks fine no compile error. Then I use it in my javax component and still no compile error. Only at runtime it throws NoClassFound error. Is there something I missed here?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Aug 2018 04:01:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-16T04:01:13Z</dc:date>
    <item>
      <title>add jar in routines but keep getting java.lang.NoClassDefFoundError:  error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307472#M78908</link>
      <description>&lt;P&gt;I created a routine and right click on that routine then edit routine libraries then add my own jar there. The jar is a very simple one I created myself and tested ok. Then when I import this jar in routine like&amp;nbsp;&lt;/P&gt;&lt;P&gt;import com.company.myclass&lt;/P&gt;&lt;P&gt;everything looks fine no compile error. Then I use it in my javax component and still no compile error. Only at runtime it throws NoClassFound error. Is there something I missed here?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 04:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307472#M78908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-16T04:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: add jar in routines but keep getting java.lang.NoClassDefFoundError:  error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307473#M78909</link>
      <description>Not sure if there is an issue on your jar, can you try also with tLibararyLoad component in a job to see if it works?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 16 Aug 2018 09:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307473#M78909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-16T09:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: add jar in routines but keep getting java.lang.NoClassDefFoundError:  error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307474#M78910</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Could you please verify whether the NoClassFound error is for your class (referred in the routine) or some other class indirectly referred by your class?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;You are doing the right verification steps and I would strongly suggest to try the option specified by Shong ie to try to create a job with tLibrarayLoad.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I had experience a similar issue in one of my Talend routine where a class for http core was indirectly getting referred from my class. Once I added the indirectly referred class by adding http core library, things started working normally.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Could you please try above step and let us know the results?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 10:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307474#M78910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-16T10:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: add jar in routines but keep getting java.lang.NoClassDefFoundError:  error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307475#M78911</link>
      <description>&lt;P&gt;Yes using tLoadLibrary resolves the issue. My class is simple so no indirect path yet, but it is a good point to remind myself. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 17:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307475#M78911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-16T17:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: add jar in routines but keep getting java.lang.NoClassDefFoundError:  error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307476#M78912</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Good job &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Could you please mark Shong's reply as the solution for the topic? It will help the next member in our Talend community if they are searching for the same query.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 05:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/add-jar-in-routines-but-keep-getting-java-lang/m-p/2307476#M78912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-17T05:27:05Z</dc:date>
    </item>
  </channel>
</rss>

