Hi,

Got two questions on JNI and .so file.  It would be appreciated if someone
could help.


Q1: I was told that when java jni loads .so file, the first function been
called is _init().  Can I use it as a constructor to setup something when
java app loads the .so file?  If I put _init() func in .so C source file,
compiler generates an error msg "multiple definition of '_init',
/usr/lib/crti.o:first definition here".

Q2: After java jni loads a .so file, how can I find the number of links to
the .so file from a command line command and a lib call?

Thank you.


Lee


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to