<?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: How to add java libraries to fix ClassNotFoundException when running a job from Studio? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259885#M41206</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; As a contingency plan till Shong comes back, you can use tLibraryLoad to add the libraries manually to the job. Please make sure that you are adding the import details in the advance section of the component so that associated classes will be available.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 21:30:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-19T21:30:02Z</dc:date>
    <item>
      <title>How to add java libraries to fix ClassNotFoundException when running a job from Studio?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259878#M41199</link>
      <description>&lt;P&gt;&lt;U&gt;Setup&lt;/U&gt;:&lt;/P&gt;&lt;P&gt;Talend Open Studio for Data Integration Version: 7.2.1&lt;/P&gt;&lt;P&gt;Win 10 64-bit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My team is working on a POC for replacing our existing ETL tool with Talend and we are stuck trying to resolve&amp;nbsp;ClassNotFoundException for various java libraries when trying to run our jobs and routines (even very simple ones) from within the Studio. Here are two that we are having trouble with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Job using tJMSInput complaining about not finding&amp;nbsp;org.apache.activemq.jndi.ActiveMQInitialContextFactory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Routine trying to connect to the SQL Server database complaining about not finding&amp;nbsp;com.microsoft.jdbc.sqlserver.SQLServerDriver. Routine code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// the &lt;U&gt;sql&lt;/U&gt; server driver string&lt;/P&gt;&lt;P&gt;Class.&lt;EM&gt;forName&lt;/EM&gt;("com.microsoft.jdbc.sqlserver.SQLServerDriver");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// the &lt;U&gt;sql&lt;/U&gt; server &lt;U&gt;url&lt;/U&gt;&lt;/P&gt;&lt;P&gt;String url = "&amp;lt;db url string&amp;gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// get the &lt;U&gt;sql&lt;/U&gt; server database connection&lt;/P&gt;&lt;P&gt;conn = DriverManager.&lt;EM&gt;getConnection&lt;/EM&gt;(url,"&amp;lt;username&amp;gt;", "&amp;lt;password&amp;gt;");&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;// now do whatever you want to do with the connection&lt;/P&gt;&lt;P&gt;String sql = "&amp;lt;insert sql here&amp;gt;";&lt;/P&gt;&lt;P&gt;stmt = conn.prepareStatement(sql);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stmt.setInt(1, errorCode);&amp;nbsp;&lt;/P&gt;&lt;P&gt;ResultSet rs = stmt.executeQuery(sql);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have been chasing our tails trying to figure out how to get Talend Studio to run our test-jobs and any guidance would be much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259878#M41199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to add java libraries to fix ClassNotFoundException when running a job from Studio?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259879#M41200</link>
      <description>Hi 
&lt;BR /&gt;First, what is your JDK version, it requires Java 8 or 11, refer to this documentation. 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/reader/LttzgwOFiGHMMQZAUlZfMg/ax8~2xFLImjTrRvgRXb3Ww" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/LttzgwOFiGHMMQZAUlZfMg/ax8~2xFLImjTrRvgRXb3Ww&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;tJMSxxx components requires jms.jar to work, make sure this jar has been installed, you can go to Windows--&amp;gt;Show views--&amp;gt;Talend--&amp;gt;Modules, and check if the required jars have been installed for tJMSxxx components. 
&lt;BR /&gt; 
&lt;BR /&gt;Talend Studio has built-in SQL Server components such as tMSSQLInput that you can use to integrate with MS SQL Server. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 18 Nov 2019 23:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259879#M41200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-18T23:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add java libraries to fix ClassNotFoundException when running a job from Studio?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259880#M41201</link>
      <description>&lt;P&gt;Thank you for the prompt response. I am on Java 8.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm not finding "&lt;SPAN&gt;Windows--&amp;gt;Show views--&amp;gt;Talend--&amp;gt;Modules" in Talend Studio for Data Integration, but I did find it under "Windows--&amp;gt;Show views--&amp;gt;Other--&amp;gt;Modules".&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Under modules it appears jms.jar is installed. I still get the runtime error. Please see attached images&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend_jms_in_modules_view.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M83W.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148291iE538ED408270D699/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M83W.png" alt="0683p000009M83W.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend_jms_exception_at_runtime.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8bH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158120i44AA3E134A01C462/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8bH.png" alt="0683p000009M8bH.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 00:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259880#M41201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-19T00:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add java libraries to fix ClassNotFoundException when running a job from Studio?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259881#M41202</link>
      <description>Which module do you select in the Module list? it should be activemq-all.jar.</description>
      <pubDate>Tue, 19 Nov 2019 01:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259881#M41202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-19T01:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add java libraries to fix ClassNotFoundException when running a job from Studio?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259882#M41203</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt;Which module do you select in the Module list? it should be activemq-all.jar. 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Weird, looks like my reply post was deleted. I replied that I don't see activemq-all.jar in the module list, only&amp;nbsp;activemq-client-5.15.9.jar. I selected this and ran it and now I get the following error:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Stats&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 18:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259882#M41203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-19T18:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add java libraries to fix ClassNotFoundException when running a job from Studio?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259883#M41204</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Ideally the component will prompt if some jar is missing (like the one below) and it will prompt you to install those missing jars.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8T0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150914i50F227D126626395/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8T0.png" alt="0683p000009M8T0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Didn't it happen in your case?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 21:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259883#M41204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-19T21:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add java libraries to fix ClassNotFoundException when running a job from Studio?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259884#M41205</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Ideally the component will prompt if some jar is missing (like the one below) and it will prompt you to install those missing jars.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Didn't it happen in your case?&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;No, Talend Studio thinks it has everything it needs, looks like. I see no issues flagged anywhere until I run the job, then it fails.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 21:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259884#M41205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-19T21:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add java libraries to fix ClassNotFoundException when running a job from Studio?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259885#M41206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; As a contingency plan till Shong comes back, you can use tLibraryLoad to add the libraries manually to the job. Please make sure that you are adding the import details in the advance section of the component so that associated classes will be available.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 21:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259885#M41206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-19T21:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to add java libraries to fix ClassNotFoundException when running a job from Studio?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259886#M41207</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;I face the same problem with sap jdbc and routes in Talend ESB.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;ngdbc.jar is correctly installed in my modules :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-26 09_29_11-Talend Open Studio for ESB (6.4.1.20170623_1246) _ GFC (Connexion_ Dev).png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M84J.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150903i9DB61C16C489D1B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M84J.png" alt="0683p000009M84J.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And I can connect in a medata DB connexion with the "test" button.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now we need to connect in a route, I wrote this :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

String connectionString = "jdbc:sap://myserver:30015?currentschema=\"SBO_ES53_RUN6\"";

//Class.forName("com.sap.db.jdbc.Driver");
    	
Connection connection =  
DriverManager.getConnection(connectionString, "myuser", "mypassword");&lt;/PRE&gt; 
&lt;P&gt;and face the same issue "No suitable driver found for jdbc:sap://..."&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is&amp;nbsp;com.sap.db.jdbc.Driver is unknown if I uncomment the class.forName line. And I can't import it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I also tried copying manually my ngdbc-2.4.64.jar file in Studio\plugins\org.talend.designer.camel.components.localprovider_6.4.1.20170623_1246\lib , and also directly in my JVM lib directory.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The same code works perfectly in a standalone Eclipse IDE with jar import to the project.&lt;/P&gt; 
&lt;P&gt;Loko&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 08:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259886#M41207</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2019-11-26T08:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to add java libraries to fix ClassNotFoundException when running a job from Studio?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259887#M41208</link>
      <description>&lt;P&gt;I can have it work if I use cTalendJob in my route and in that job use tLoadLibrary to load my jar.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is pretty awfull workaround, just to be sure the issue comes from Talend route conf and not from the jar itself.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 09:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-java-libraries-to-fix-ClassNotFoundException-when/m-p/2259887#M41208</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2019-11-27T09:28:13Z</dc:date>
    </item>
  </channel>
</rss>

