<?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: [resolved] Undefined function and use tLibraryLoad in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Undefined-function-and-use-tLibraryLoad/m-p/2261156#M42013</link>
    <description>Thank you !&lt;BR /&gt;It's work well with the second method ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Wed, 22 Aug 2012 13:49:48 GMT</pubDate>
    <dc:creator>param75</dc:creator>
    <dc:date>2012-08-22T13:49:48Z</dc:date>
    <item>
      <title>[resolved] Undefined function and use tLibraryLoad</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Undefined-function-and-use-tLibraryLoad/m-p/2261154#M42011</link>
      <description>Hello,
&lt;BR /&gt;I need to use the library "commons-lang3" and more specically the function "unescapeHtml4".
&lt;BR /&gt;So I use a tLibraryLoad and a tjava. In the tjava I just have "System.out.println(unescapeHtml4("&amp;lt;Français&amp;gt;"));"
&lt;BR /&gt;But I have the message error : "La méthode unescapeHtml4(String) est indéfinie pour le type test_library"
&lt;BR /&gt;
&lt;BR /&gt;So I've tried with another method : I use the "User Libraries Preferences". I add the .jar in this window
&lt;BR /&gt;I use just a tjava with : 
&lt;BR /&gt;String test = "&amp;lt;Français&amp;gt;";
&lt;BR /&gt;System.out.println(org.apache.commons.lang3.StringEscapeUtils.unescapeHtml3(test));
&lt;BR /&gt;But I have the message error : 
&lt;BR /&gt; connecting to socket on port 3463
&lt;BR /&gt; connected
&lt;BR /&gt;Exception in thread "main" java.lang.Error: java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringEscapeUtils
&lt;BR /&gt; at sis.test_library_0_1.test_library.tJava_1Process(test_library.java:1313)
&lt;BR /&gt; at sis.test_library_0_1.test_library.runJobInTOS(test_library.java:1506)
&lt;BR /&gt; at sis.test_library_0_1.test_library.main(test_library.java:1359)
&lt;BR /&gt;Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringEscapeUtils
&lt;BR /&gt; at sis.test_library_0_1.test_library.tJava_1Process(test_library.java:1275)
&lt;BR /&gt; ... 2 more
&lt;BR /&gt; disconnected
&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringEscapeUtils
&lt;BR /&gt; at java.net.URLClassLoader$1.run(Unknown Source)
&lt;BR /&gt; at java.security.AccessController.doPrivileged(Native Method)
&lt;BR /&gt; at java.net.URLClassLoader.findClass(Unknown Source)
&lt;BR /&gt; at java.lang.ClassLoader.loadClass(Unknown Source)
&lt;BR /&gt; at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
&lt;BR /&gt; at java.lang.ClassLoader.loadClass(Unknown Source)
&lt;BR /&gt; ... 3 more
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;How can I use an external library ? 
&lt;BR /&gt;
&lt;BR /&gt;(I've take the library "commons-lang3-3.1-bin.zip" on this website 
&lt;A href="http://commons.apache.org/lang/download_lang.cgi)" target="_blank" rel="nofollow noopener noreferrer"&gt;http://commons.apache.org/lang/download_lang.cgi)&lt;/A&gt;
&lt;BR /&gt;Thank you,
&lt;BR /&gt;Carole</description>
      <pubDate>Tue, 21 Aug 2012 14:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Undefined-function-and-use-tLibraryLoad/m-p/2261154#M42011</guid>
      <dc:creator>param75</dc:creator>
      <dc:date>2012-08-21T14:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Undefined function and use tLibraryLoad</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Undefined-function-and-use-tLibraryLoad/m-p/2261155#M42012</link>
      <description>Hi
&lt;BR /&gt;You should import the class before using it, go to the advanced setting tab of tJava:
&lt;BR /&gt;
&lt;PRE&gt;import org.apache.commons.lang3.StringEscapeUtils.unescapeHtml4;&lt;/PRE&gt;
&lt;BR /&gt;or use the class with full package path:
&lt;BR /&gt; 
&lt;PRE&gt;System.out.println(org.apache.commons.lang3.StringEscapeUtils.unescapeHtml4("&amp;lt;Français&amp;gt;"));&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Aug 2012 13:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Undefined-function-and-use-tLibraryLoad/m-p/2261155#M42012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-22T13:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Undefined function and use tLibraryLoad</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Undefined-function-and-use-tLibraryLoad/m-p/2261156#M42013</link>
      <description>Thank you !&lt;BR /&gt;It's work well with the second method ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 22 Aug 2012 13:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Undefined-function-and-use-tLibraryLoad/m-p/2261156#M42013</guid>
      <dc:creator>param75</dc:creator>
      <dc:date>2012-08-22T13:49:48Z</dc:date>
    </item>
  </channel>
</rss>

