<?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 specify java.library.path for a native library? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-specify-java-library-path-for-a-native-library/m-p/2213157#M10517</link>
    <description>Hi Geoffrey,
&lt;BR /&gt;if we are talking about a JNI Implementation then you call the DLL direkt over
&lt;BR /&gt;System.loadLibrary("&amp;lt;LIBNAME WITHOUT EXTENSION&amp;gt;");
&lt;BR /&gt;or
&lt;BR /&gt;System.load("&amp;lt;LIBNAME WITH EXTENSION&amp;gt;");
&lt;BR /&gt;The first function try to find the DLL in the main folder. In the second case you can add a directory name.
&lt;BR /&gt;Normally TOS is looking for the DLL inside the main folder. There where the *.bat or *.sh Files for TOS starting
&lt;BR /&gt;are located. Problem could be if you try to debug or export and run the generated script! The easiest way is to store
&lt;BR /&gt;you mapping DLL inside your JAR and at the runtime level you will make the export from this file. Afterwards you
&lt;BR /&gt;call System.loadLibrary().
&lt;BR /&gt;Hope that helps?
&lt;BR /&gt;cu.
&lt;BR /&gt; Martin</description>
    <pubDate>Thu, 27 Nov 2008 13:14:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-11-27T13:14:25Z</dc:date>
    <item>
      <title>how to specify java.library.path for a native library?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-specify-java-library-path-for-a-native-library/m-p/2213156#M10516</link>
      <description>My component requires a native DLL on Windows. I tried copying the DLL into the component directory, but it?s not finding it. (UnsatisfiedLinkError). How do I ensure that the java.library.path is set correctly to include my DLL? 
&lt;BR /&gt;I saw advice in another thread to copy the DLL into windows/system32, but it's hard to maintain when code is buried in a system directory. Is there another way? 
&lt;BR /&gt;I looked in the XML for one other component that has a DLL (tPaloOutput) but I couldn?t see anything relating to this in the XML file. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Geoffrey</description>
      <pubDate>Sat, 16 Nov 2024 14:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-specify-java-library-path-for-a-native-library/m-p/2213156#M10516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify java.library.path for a native library?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-specify-java-library-path-for-a-native-library/m-p/2213157#M10517</link>
      <description>Hi Geoffrey,
&lt;BR /&gt;if we are talking about a JNI Implementation then you call the DLL direkt over
&lt;BR /&gt;System.loadLibrary("&amp;lt;LIBNAME WITHOUT EXTENSION&amp;gt;");
&lt;BR /&gt;or
&lt;BR /&gt;System.load("&amp;lt;LIBNAME WITH EXTENSION&amp;gt;");
&lt;BR /&gt;The first function try to find the DLL in the main folder. In the second case you can add a directory name.
&lt;BR /&gt;Normally TOS is looking for the DLL inside the main folder. There where the *.bat or *.sh Files for TOS starting
&lt;BR /&gt;are located. Problem could be if you try to debug or export and run the generated script! The easiest way is to store
&lt;BR /&gt;you mapping DLL inside your JAR and at the runtime level you will make the export from this file. Afterwards you
&lt;BR /&gt;call System.loadLibrary().
&lt;BR /&gt;Hope that helps?
&lt;BR /&gt;cu.
&lt;BR /&gt; Martin</description>
      <pubDate>Thu, 27 Nov 2008 13:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-specify-java-library-path-for-a-native-library/m-p/2213157#M10517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-27T13:14:25Z</dc:date>
    </item>
  </channel>
</rss>

