Find jobs | Nikon D3000 | Iphone 4 | Cheap Home Insurance | Reno Nevada Real Estate
loading libraries .. help [Archive] - Muslim Programmers & Designers Community - Islamic Webhosting and Nasheeds

PDA

View Full Version : loading libraries .. help



abdullah
10-24-2004, 06:14 PM
assalamu 'alaikum,

i compiled a java wrapper for a c class through SWIG ("libitl_java.so").

teh problem is whenever i use System.loadLibrary("libitl_java.so"); or System.loadLibrary("libitl_java"); it gives me this exception (during runtime):




Exception in thread "main" java.lang.UnsatisfiedLinkError: no libitl_java.so 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:992)
at JPrayerGUI.<clinit>(JPrayerGUI.java:13)
at JPrayer.main(JPrayer.java:40)



i even tried setting the java.library.path property to the directory where the so file sits, but it still gives me that error...

i am out of ideas.. and i'd be really grateful if anyone can point me in the right direction..

thanks in advance

furqan
10-25-2004, 08:48 AM
Try removing the underscore and "java" from the name... *shrug*

Eyyub
10-26-2004, 09:26 AM
On this site is explained how System.loadLibrary() can be used:
http://www.inonit.com/cygwin/jni/helloWorld/load.html

abdullah
10-27-2004, 06:50 PM
thanks for the responses guys..

i looked at that link, and it solved my problem.. except now i have a different problem..lol... but hopefully i will be able to resolve that.. : )