<?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: Using tLibraryLoad to import custom code in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270474#M48370</link>
    <description>I came back from holiday and noticed that I didn't get a response to this.&amp;nbsp; Running custom Java code in line with other Talend components is one of the requirements we had in mind for using Talend in our ETL process.&lt;BR /&gt;Is there any known solution for this?&amp;nbsp;</description>
    <pubDate>Mon, 04 Jan 2016 15:12:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-04T15:12:58Z</dc:date>
    <item>
      <title>Using tLibraryLoad to import custom code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270469#M48365</link>
      <description>I am testing out Talend's custom Java capabilities.&amp;nbsp; For reference, I am running Talend 6.1.0.20151029_1337.&amp;nbsp; &lt;BR /&gt;I wanted to see if I could load in a custom class and run it as part of a Job.&amp;nbsp; After reviewing the documentation on tLibraryLoad and checking a few examples, I added a tLibraryLoad component and clicked the (...), specifying my custom jar file as my library.&amp;nbsp; Then, in advanced settings, I imported the desired class and hooked up a tJava component via "onSubjobOk" to run it.&lt;BR /&gt;However, when I try to compile and run the job, I get "The import XXX cannot be resolved"&lt;BR /&gt;I left the .jar in my eclipse project directory.&amp;nbsp; I assumed that, since I was able to find it with the file browser when setting up my tLibraryLoad component, Talend would be able to retrieve and use the jar.&amp;nbsp; Is there something I'm doing wrong?</description>
      <pubDate>Wed, 16 Dec 2015 18:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270469#M48365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-16T18:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using tLibraryLoad to import custom code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270470#M48366</link>
      <description>Yes, Talend was able to retrieve and use the .jar, but I think your import statement is the problem, hence the &amp;nbsp;"The import XXX cannot be resolved" error. Why dont you just remove the import statement altogether so the whole .jar would be imported, you can then use the specific class or function later in your Talend job.</description>
      <pubDate>Thu, 17 Dec 2015 01:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270470#M48366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-17T01:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using tLibraryLoad to import custom code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270471#M48367</link>
      <description>I removed the import and tried to call a static method from one of the jar's classes, once more.&amp;nbsp; Now, I get the "&amp;lt;classname&amp;gt; cannot be resolved" error on the tJava component.
&lt;BR /&gt;Is the import not necessary to pull in a particular class in Talend?&amp;nbsp; Why would I need to remove it?&amp;nbsp;</description>
      <pubDate>Thu, 17 Dec 2015 13:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270471#M48367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-17T13:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using tLibraryLoad to import custom code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270472#M48368</link>
      <description>Hi,&lt;BR /&gt;Could you please post your job screenshots into forum so that we can see if there is anything wrong with your setting?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 18 Dec 2015 04:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270472#M48368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-18T04:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using tLibraryLoad to import custom code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270473#M48369</link>
      <description>As requested, here is a screenshot of the job layout, the Basic &amp;amp; Advanced Settings of my tLibraryLoad component, and the code in my tJava component.&amp;nbsp; Assume FlowConverter is a class within the jar that I am referencing. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCjY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151334iA86801B336624AE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCjY.png" alt="0683p000009MCjY.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCYR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155936i699504A9C56F8EF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCYR.png" alt="0683p000009MCYR.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCjd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150708i96076D7B42C066B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCjd.png" alt="0683p000009MCjd.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 18 Dec 2015 14:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270473#M48369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-18T14:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using tLibraryLoad to import custom code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270474#M48370</link>
      <description>I came back from holiday and noticed that I didn't get a response to this.&amp;nbsp; Running custom Java code in line with other Talend components is one of the requirements we had in mind for using Talend in our ETL process.&lt;BR /&gt;Is there any known solution for this?&amp;nbsp;</description>
      <pubDate>Mon, 04 Jan 2016 15:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270474#M48370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-04T15:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using tLibraryLoad to import custom code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270475#M48371</link>
      <description>Hi,&lt;BR /&gt;Sorry for delay!&lt;BR /&gt;Have you already checked the scenario in component reference &lt;A href="https://help.talend.com/search/all?query=tLibraryLoad&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tLibraryLoad&lt;/A&gt;?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 05 Jan 2016 02:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270475#M48371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-05T02:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using tLibraryLoad to import custom code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270476#M48372</link>
      <description>Yes, that was actually my reference when I first set up this test case.&amp;nbsp; Also, as an update, to be sure that my jar file hasn't been causing the problem, instead of using my own jar, I am now attempting to use the Apache Commons Lang library as my test library. 
&lt;BR /&gt;To reiterate, I: 
&lt;BR /&gt;- created a tLibraryLoad component and browsed my files to find the commons-lang3-3.4.jar file 
&lt;BR /&gt;- specified under the tLibraryLoad's Advanced Settings the following import: "import org.apache.commons.lang3.StringUtils;" 
&lt;BR /&gt;- connected to a tJava component via an onSubjobOk trigger 
&lt;BR /&gt;- configured the tJava component to execute the code: "System.out.println(org.apache.commons.lang3.StringUtils.capitalize("word"));" 
&lt;BR /&gt;This resulted in the same error as before, instead referring to the new import: "The import org.apache.commons cannot be resolved" 
&lt;BR /&gt;The example is fairly simple and this library is very widely used.&amp;nbsp; I can't seem to figure out what's going wrong.&amp;nbsp; Any ideas?</description>
      <pubDate>Tue, 05 Jan 2016 14:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270476#M48372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-05T14:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using tLibraryLoad to import custom code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270477#M48373</link>
      <description>I'm having a similar issue in 6.1.1. When I browse to a library and include it in a tLibraryload it is not showing up in the modules tab. Other users in the same project should see it in the drop down. I think libraries lost some functionality in 6.0.1 and 6.1.1</description>
      <pubDate>Sat, 09 Jan 2016 02:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270477#M48373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-09T02:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using tLibraryLoad to import custom code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270478#M48374</link>
      <description>If this is indeed a bug, I hope it gets resolved soon.&amp;nbsp; Where is the appropriate place to report a bug?&amp;nbsp; Being able to run custom code in a workflow is a requirement for a few of our future ETL use cases.&amp;nbsp;</description>
      <pubDate>Mon, 11 Jan 2016 13:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tLibraryLoad-to-import-custom-code/m-p/2270478#M48374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T13:01:35Z</dc:date>
    </item>
  </channel>
</rss>

