<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JNI (Java Native Interface): Exception in thread &#8220;main&#8221; java.lang.UnsatisfiedLinkError: Can&#8217;t find dependent libraries</title>
	<atom:link href="http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/feed/" rel="self" type="application/rss+xml" />
	<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/</link>
	<description>Brief articles by Kai Witte</description>
	<lastBuildDate>Tue, 27 Jul 2010 15:55:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ben Hmida</title>
		<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/comment-page-1/#comment-604</link>
		<dc:creator>Ben Hmida</dc:creator>
		<pubDate>Thu, 08 Jul 2010 13:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://witte-consulting.com/blog/?p=141#comment-604</guid>
		<description>Hallo
Das ist ok 
Vielen danke:)</description>
		<content:encoded><![CDATA[<p>Hallo<br />
Das ist ok<br />
Vielen danke:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kai Witte</title>
		<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/comment-page-1/#comment-599</link>
		<dc:creator>Kai Witte</dc:creator>
		<pubDate>Sat, 03 Jul 2010 15:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://witte-consulting.com/blog/?p=141#comment-599</guid>
		<description>Hello Ben,

I&#039;d say that the .dll is not in the PATH and not in the working directory, or that something is wrong with it (like for example in my case).

It will help to do it without NetBeans, just run from the command line. That&#039;s certainly possible in your environment.

Kai</description>
		<content:encoded><![CDATA[<p>Hello Ben,</p>
<p>I&#8217;d say that the .dll is not in the PATH and not in the working directory, or that something is wrong with it (like for example in my case).</p>
<p>It will help to do it without NetBeans, just run from the command line. That&#8217;s certainly possible in your environment.</p>
<p>Kai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Hmida</title>
		<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/comment-page-1/#comment-597</link>
		<dc:creator>Ben Hmida</dc:creator>
		<pubDate>Sat, 03 Jul 2010 14:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://witte-consulting.com/blog/?p=141#comment-597</guid>
		<description>Hi , 
I m a Phd student and actually, i have the same problem. just, im working wih netbeans, and it is forbidden to install any other software or any things. I m working on from 3 days and the delevered message is 
&quot;run: Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: HelloWorld.print()V
        at HelloWorld.print(Native Method)
        at HelloWorld.main(HelloWorld.java:4)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)&quot;

I m respecting all the steps, even i tried until now 5 examples and almost the same display error.
So do any one of u have an idea how to resolve this problem
NB: i m working with netbeans 6,9 and with jdk1.6.0_20

Danke</description>
		<content:encoded><![CDATA[<p>Hi ,<br />
I m a Phd student and actually, i have the same problem. just, im working wih netbeans, and it is forbidden to install any other software or any things. I m working on from 3 days and the delevered message is<br />
&#8220;run: Exception in thread &#8220;main&#8221; java.lang.UnsatisfiedLinkError: HelloWorld.print()V<br />
        at HelloWorld.print(Native Method)<br />
        at HelloWorld.main(HelloWorld.java:4)<br />
Java Result: 1<br />
BUILD SUCCESSFUL (total time: 0 seconds)&#8221;</p>
<p>I m respecting all the steps, even i tried until now 5 examples and almost the same display error.<br />
So do any one of u have an idea how to resolve this problem<br />
NB: i m working with netbeans 6,9 and with jdk1.6.0_20</p>
<p>Danke</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kylie Batt</title>
		<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/comment-page-1/#comment-569</link>
		<dc:creator>Kylie Batt</dc:creator>
		<pubDate>Wed, 12 May 2010 11:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://witte-consulting.com/blog/?p=141#comment-569</guid>
		<description>&lt;strong&gt;Авторитетный ответ, познавательно......&lt;/strong&gt;

&lt;a href=&quot;http://www.trudogolik-ru.ru/?p=88&quot; rel=&quot;nofollow&quot;&gt; &lt;/a&gt; How to fix UnsatisfiedLinkError in JNI
I have never had problems with JNI. In the few situations when I needed it, it just worked.....</description>
		<content:encoded><![CDATA[<p><strong>Авторитетный ответ, познавательно&#8230;&#8230;</strong></p>
<p><a href="http://www.trudogolik-ru.ru/?p=88" rel="nofollow"> </a> How to fix UnsatisfiedLinkError in JNI<br />
I have never had problems with JNI. In the few situations when I needed it, it just worked&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kai Witte</title>
		<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/comment-page-1/#comment-542</link>
		<dc:creator>Kai Witte</dc:creator>
		<pubDate>Tue, 09 Mar 2010 14:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://witte-consulting.com/blog/?p=141#comment-542</guid>
		<description>hello Franklin,

I&#039;d say either the native binary is not found or it doesn&#039;t contain what you need.

Did you compile it with gcc --add-stdcall-alias? Did you check out which functions the binary contains? Did it contain sendechotohost? Is it in the runtime PATH?</description>
		<content:encoded><![CDATA[<p>hello Franklin,</p>
<p>I&#8217;d say either the native binary is not found or it doesn&#8217;t contain what you need.</p>
<p>Did you compile it with gcc &#8211;add-stdcall-alias? Did you check out which functions the binary contains? Did it contain sendechotohost? Is it in the runtime PATH?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: franklin</title>
		<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/comment-page-1/#comment-541</link>
		<dc:creator>franklin</dc:creator>
		<pubDate>Tue, 09 Mar 2010 14:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://witte-consulting.com/blog/?p=141#comment-541</guid>
		<description>Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: sendechotohost
        at NativePing.sendechotohost(Native Method)
        at NativePing.getResultForTheHost(NativePing.java:517)
        at NativePing.pingHost(NativePing.java:396)
        at NativePing.pingHost(NativePing.java:422)
        at NativePing.pingHost(NativePing.java:384)
        at NativePing.main(NativePing.java:616)

In Linux I am getting this error. Can any one explain....</description>
		<content:encoded><![CDATA[<p>Exception in thread &#8220;main&#8221; java.lang.UnsatisfiedLinkError: sendechotohost<br />
        at NativePing.sendechotohost(Native Method)<br />
        at NativePing.getResultForTheHost(NativePing.java:517)<br />
        at NativePing.pingHost(NativePing.java:396)<br />
        at NativePing.pingHost(NativePing.java:422)<br />
        at NativePing.pingHost(NativePing.java:384)<br />
        at NativePing.main(NativePing.java:616)</p>
<p>In Linux I am getting this error. Can any one explain&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: degree</title>
		<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/comment-page-1/#comment-539</link>
		<dc:creator>degree</dc:creator>
		<pubDate>Fri, 12 Feb 2010 09:17:20 +0000</pubDate>
		<guid isPermaLink="false">http://witte-consulting.com/blog/?p=141#comment-539</guid>
		<description>just need to build the helloworld.c following way

cl -I c:\Java\jdk1.6.0_01\include -I c:\Java\jdk1.6.0_01\include\win32 -LD HelloWorld.c -FeHelloWorld.dll

Not with -MD option.  Java load library functions are not able to load because of -MD option. I think JNI documentations should be updated.</description>
		<content:encoded><![CDATA[<p>just need to build the helloworld.c following way</p>
<p>cl -I c:\Java\jdk1.6.0_01\include -I c:\Java\jdk1.6.0_01\include\win32 -LD HelloWorld.c -FeHelloWorld.dll</p>
<p>Not with -MD option.  Java load library functions are not able to load because of -MD option. I think JNI documentations should be updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manoj</title>
		<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/comment-page-1/#comment-535</link>
		<dc:creator>Manoj</dc:creator>
		<pubDate>Wed, 27 Jan 2010 09:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://witte-consulting.com/blog/?p=141#comment-535</guid>
		<description>add option &quot;-Wl,--kill-at&quot; 

 `--kill-at&#039;
        Specifies that when `dlltool&#039; is creating the
        exports file it should not append the string
        `@ &#039;.  These numbers are called
        ordinal numbers and they represent another
        way of accessing the function in a DLL, other
        than by name.


With this the problem will go away sure shot.</description>
		<content:encoded><![CDATA[<p>add option &#8220;-Wl,&#8211;kill-at&#8221; </p>
<p> `&#8211;kill-at&#8217;<br />
        Specifies that when `dlltool&#8217; is creating the<br />
        exports file it should not append the string<br />
        `@ &#8216;.  These numbers are called<br />
        ordinal numbers and they represent another<br />
        way of accessing the function in a DLL, other<br />
        than by name.</p>
<p>With this the problem will go away sure shot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amaresh</title>
		<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/comment-page-1/#comment-528</link>
		<dc:creator>Amaresh</dc:creator>
		<pubDate>Wed, 11 Nov 2009 10:19:06 +0000</pubDate>
		<guid isPermaLink="false">http://witte-consulting.com/blog/?p=141#comment-528</guid>
		<description>Wow !!
Thanks so much.

This topic helped me getting started with Java -&gt; JNI -&gt; DLL.

Thanks</description>
		<content:encoded><![CDATA[<p>Wow !!<br />
Thanks so much.</p>
<p>This topic helped me getting started with Java -&gt; JNI -&gt; DLL.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nethibernate</title>
		<link>http://witte-consulting.com/blog/jni-java-native-interface-exception-in-thread-main-javalangunsatisfiedlinkerror-can-t-find-dependent-libraries/comment-page-1/#comment-504</link>
		<dc:creator>nethibernate</dc:creator>
		<pubDate>Sun, 09 Aug 2009 14:48:42 +0000</pubDate>
		<guid isPermaLink="false">http://witte-consulting.com/blog/?p=141#comment-504</guid>
		<description>Thanks Alexandra, your insight really works.
I got the same problem with Kai. I think it&#039;s not about the procedure name. If you remove the &quot;-MD&quot; option when you link the C file, it can work.</description>
		<content:encoded><![CDATA[<p>Thanks Alexandra, your insight really works.<br />
I got the same problem with Kai. I think it&#8217;s not about the procedure name. If you remove the &#8220;-MD&#8221; option when you link the C file, it can work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
