From: Frank R. <fra...@we...> - 2007-02-15 17:03:04
|
Hi, i'm absolutely new to this list and relatively new to p2p-sip and dht and would appreciate any help with this problem: I tried to run Sipdht.java from the examples folder (using eclipse on an ubuntu 6.10 machine). But i always get an error like this: Exception in thread "main" java.lang.UnsatisfiedLinkError: no sipdhtjava in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at Sipdht.<clinit>(Sipdht.java:180) For me it looks like java tries to find a file "sipdhtjava.so" in the java.library.path or does it has to be without .so ? Anyway, i don't have such a file . . . My java.library.path looks like this: /usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/../lib/i386:/usr/lib/firefox Do you have any idea what i can do? Btw: I successfully ran the dht-example from http://sipdht.sourceforge.net/doc.html . That's why i think it's not a problem of a missing library like libsofia or libsipdht - but maybe i'm totally wrong . . . Please help. Best regards, Frank |
From: Enrico M. <enr...@te...> - 2007-02-15 18:05:11
|
Frank Ruwolt wrote: > I tried to run Sipdht.java from the examples folder (using eclipse on = an ubuntu 6.10 machine). But i always get an error > like this: >=20 > Exception in thread "main" java.lang.UnsatisfiedLinkError: no = sipdhtjava in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > at java.lang.System.loadLibrary(System.java:993) > at Sipdht.<clinit>(Sipdht.java:180) >=20 > For me it looks like java tries to find a file "sipdhtjava.so" in the = java.library.path or does it has to be without > .so ? Anyway, i don't have such a file . . . > My java.library.path looks like this: = /usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386/client:/usr/lib/jvm/jav= a-1.5.0-sun-1.5.0.08/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jr= e/../lib/i386:/usr/lib/firefox >=20 > Do you have any idea what i can do? If you have installed libsidht-java from the tarball (remember that it=20 depends from libsidht and libsipdht++), you should set LD_LIBRARY_PATH=20 pointing to /usr/local/lib. You haven't used the .deb files, have you? I'd suggest that you use=20 them as they should not require further configuration... and also=20 because we haven't tryed them on Ubuntu Edgy yet ;-) --=20 Ciao, Enrico Ahem... Sorry, the notice below is not my fault :-( -------------------------------------------------------------------- CONFIDENTIALITY NOTICE This message and its attachments are addressed solely to the persons = above and may contain confidential information. If you have received the = message in error, be informed that any use of the content hereof is = prohibited. Please return it immediately to the sender and delete the = message. Should you have any questions, please contact us by replying to = web...@te.... Thank you www.telecomitalia.it -------------------------------------------------------------------- =20 |
From: Frank R. <fra...@we...> - 2007-02-16 09:42:38
|
Hi, and thanks for your reply. i installed everything from .deb files (including libsofia, libsipdht, libsipdht++). I also tried to set LD_LIBRARY_PATH but it was not the answer to this problem. Which files should i have in /usr/local/lib? There isn't any. Am i right in thinking that Java looks for a file called sipdhtjava.so ? If yes, where can i get it from? Sorry for a lot of questions! Best regards, Frank Enrico Marocco wrote: > Frank Ruwolt wrote: >> I tried to run Sipdht.java from the examples folder (using eclipse on >> an ubuntu 6.10 machine). But i always get an error >> like this: >> >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> sipdhtjava in java.library.path >> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) >> at java.lang.Runtime.loadLibrary0(Runtime.java:822) >> at java.lang.System.loadLibrary(System.java:993) >> at Sipdht.<clinit>(Sipdht.java:180) >> >> For me it looks like java tries to find a file "sipdhtjava.so" in the >> java.library.path or does it has to be without >> .so ? Anyway, i don't have such a file . . . >> My java.library.path looks like this: >> /usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/../lib/i386:/usr/lib/firefox >> >> >> Do you have any idea what i can do? > > If you have installed libsidht-java from the tarball (remember that it > depends from libsidht and libsipdht++), you should set LD_LIBRARY_PATH > pointing to /usr/local/lib. > > You haven't used the .deb files, have you? I'd suggest that you use > them as they should not require further configuration... and also > because we haven't tryed them on Ubuntu Edgy yet ;-) > |
From: Enrico M. <enr...@te...> - 2007-02-16 10:53:55
|
Frank Ruwolt wrote: > i installed everything from .deb files (including libsofia, libsipdht, = > libsipdht++). > I also tried to set LD_LIBRARY_PATH but it was not the answer to this=20 > problem. Which files should i have in /usr/local/lib? There isn't any. > Am i right in thinking that Java looks for a file called sipdhtjava.so = ?=20 Yes. > If yes, where can i get it from? libsipdht-java installs it in /usr/lib. > Sorry for a lot of questions! No problem; we've just replicated the error on a Ubuntu 6.10; if you have installed the debs, it should be enough setting LD_LIBRARY_PATH=3D/usr/lib We still don't know why... we'll let you know. --=20 Ciao, Enrico Ahem.. Sorry, the notice below is not my fault :-( -------------------------------------------------------------------- CONFIDENTIALITY NOTICE This message and its attachments are addressed solely to the persons = above and may contain confidential information. If you have received the = message in error, be informed that any use of the content hereof is = prohibited. Please return it immediately to the sender and delete the = message. Should you have any questions, please contact us by replying to = web...@te.... Thank you www.telecomitalia.it -------------------------------------------------------------------- =20 |
From: Frank R. <fra...@we...> - 2007-02-16 11:40:39
|
Thanks! Btw: I found a file called libsipdhtjava.so in /usr/lib - maybe it's just a naming error (libsipdhtjava.so instead of sipdhtjava.so)? Regards, Frank Enrico Marocco wrote: > Frank Ruwolt wrote: > >> i installed everything from .deb files (including libsofia, libsipdht, >> libsipdht++). >> I also tried to set LD_LIBRARY_PATH but it was not the answer to this >> problem. Which files should i have in /usr/local/lib? There isn't any. >> Am i right in thinking that Java looks for a file called sipdhtjava.so ? >> > > Yes. > > >> If yes, where can i get it from? >> > > libsipdht-java installs it in /usr/lib. > > >> Sorry for a lot of questions! >> > > No problem; we've just replicated the error on a Ubuntu 6.10; if you > have installed the debs, it should be enough setting > LD_LIBRARY_PATH=/usr/lib > > We still don't know why... we'll let you know. > > |
From: Enrico M. <enr...@te...> - 2007-02-16 11:45:58
|
Frank Ruwolt wrote: > Thanks! Does it work now? > Btw: > I found a file called libsipdhtjava.so in /usr/lib - maybe it's just = a=20 > naming error (libsipdhtjava.so instead of sipdhtjava.so)? I don't think so. At least for gcc, the name of the library is usually the filename stripped of `lib'. Unfortunately, even if I should, I'm not so familiar with JNI :-( --=20 Ciao, Enrico Ahem.. Sorry, the notice below is not my fault :-( -------------------------------------------------------------------- CONFIDENTIALITY NOTICE This message and its attachments are addressed solely to the persons = above and may contain confidential information. If you have received the = message in error, be informed that any use of the content hereof is = prohibited. Please return it immediately to the sender and delete the = message. Should you have any questions, please contact us by replying to = web...@te.... Thank you www.telecomitalia.it -------------------------------------------------------------------- =20 |