Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
JNI - System.loadLibrary problem
- From: gautamk at pspl.co.in (gautam)
- Subject: JNI - System.loadLibrary problem
- Date: Sat Nov 12 19:39:23 2005
shouldnt liba.so load libd.so and libc.so?? while building liba.so the linking options should specify these two?? regards gautam -----Original Message----- From: Ted Neward [mailto:ted@xxxxxxxxxx] Sent: Friday, December 01, 2000 10:36 AM To: Kamal Hussain; advanced-java@xxxxxxxxxxxxxxxx Subject: Re: JNI - System.loadLibrary problem This is one place where a Java list can't help you much, I'm afraid--the behavior of System.loadLibrary() is pretty simple--just attempt to load the native library specified. At that point, it's up to the underlying native facilities to decide what should happen next, which I believe, on Solaris, is to require loading of all dependent shared libs, as well. Ted Neward {C# || Java} Instructor, DevelopMentor (http://www.develop.com) http://www.javageeks.com/~tneward ----- Original Message ----- From: "Kamal Hussain" <kamalh@xxxxxxxxxx> To: <advanced-java@xxxxxxxxxxxxxxxx> Sent: Thursday, November 30, 2000 7:13 PM Subject: JNI - System.loadLibrary problem > Hi, > Please advise me.!I've been working on this problem without any results. > > My java program uses a shared library which contains C native methods. I'm > getting UnsatisfiedLinkError while executing the program. > > I read thru many documents and did all the required steps > like > 1) Setting LD_LIBRARY_PATH (I'm running on Solaris) > 2) All the native methods got correct signatures as see in library. > > My shared object links with another five shared objects. > > If my library is liba.so and it links with libc.so and libd.so will > System.loadLibrary try to load all three libraries? > Does it check for symbol definitions before loading these libraries? > > Can anybody please throw some light on how System.loadLibrary works? > I would greatly appreciate any suggestion to debug this problem also. > > Thanks > Kamal > > --- > To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx > To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx --- To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx --- To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
- References:
- JNI - System.loadLibrary problem
- From: Ted Neward
- JNI - System.loadLibrary problem
- Prev by Date: JNI - System.loadLibrary problem
- Next by Date: Browser
- Previous by thread: JNI - System.loadLibrary problem
- Next by thread: Browser
- Index(es):