From: Frank R. <fra...@we...> - 2007-02-22 21:00:16
|
yes, this works for me if i run it in bash but i think it was my fault that it didn't run on eclipse. One should be careful to pass the right vm-arguments in correct spelling . . . i had to specify the java.library.path in eclipse by using: -Djava.library.path=/usr/lib Many thanks for your help! -- Regards, Frank Ruwolt am Dienstag, 20. Februar 2007 erhielt ich diese email: > Frank Ruwolt wrote: >> no, it doesn't work - i always get the same error message. i also renamed the file to sipdhtjava.so > The name of the shared object is correct. With the following I'm able > to compile and run the example on an Ubuntu 6.10: >> $ cd /tmp >> $ zcat /usr/share/doc/libsipdht-java/Sipdht.java.gz > Sipdht.java >> $ export CLASSPATH=/usr/share/java/gnu-getopt.jar:/usr/share/java/sipdht0.7.jar:. >> $ export LD_LIBRARY_PATH=/usr/lib >> $ javac Sipdht.java >> $ java Sipdht > Does it work in your environment? |