Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

no jdns_sd in java.library.path in Linux

I have compiled mDNSResponder-107.6 successfully. When I run in Linux;
Linux itx-01 2.6.26.8-57.fc8 #1 SMP Thu Dec 18 19:19:45 EST 2008 i686 i686 i386 GNU/Linux
I get:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jdns_sd in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at com.apple.dnssd.AppleDNSSD.<clinit>(DNSSD.java:567)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.apple.dnssd.DNSSD.<clinit>(DNSSD.java:503)
at SimpleChat.<init>(SimpleChat.java:98)
at SimpleChat.main(SimpleChat.java:246)

Here is my cmd line:
java -cp .:BrowserApp.jar:SimpleChat.jar:../../lib/dns_sd.jar SimpleChat
mdnsd is running:
nobody 5472 0.0 0.0 2036 876 ? Ss 15:30 0:00 /usr/sbin/mdnsd

Thanks for the help!
alorenzo

Other OS

Posted on Feb 10, 2009 2:15 PM

Reply
1 reply

Feb 17, 2009 6:53 AM in response to alorenzo

I got it to work. Problem was that there are no instructions in how to create the dns_sd.jar and libjdns_sd.so.
Solution, after make os=? install; run make os=? Java and this will create both files. Then to execute, run java -Djava.library.path={path-to-libjdns) -cp .:dns_sd.jar JavaProgram.
Hope this helps other people.

no jdns_sd in java.library.path in Linux

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.