Re: JNI-Linking/loading .so objects used by c code

1999-01-03 Thread Jacob Nikom
Check the names of your native methods in .java, .h and .cxx files Are they the same (with respect to JNI requirements)? Jacob Nikom Raj Patel wrote: > > Hi everybody, > I am having trouble linking/loading *.so > objects that are used by my C++ code. Does anybody k

Re: JNI-Linking/loading .so objects used by c code

1999-01-03 Thread Raj Patel
Burkhart,Kelly wrote: > When you create the shared library with your JNI call do you link it with > the shared libraries it requires? > > Say you have libmyroutine.so and you are trying to create libmyjni.so: > > g++ --shared ... -o libmyjni.so -L/appropriate/path -lmyroutine > > Now when you ldd

RE: JNI-Linking/loading .so objects used by c code

1999-01-03 Thread Burkhart,Kelly
When you create the shared library with your JNI call do you link it with the shared libraries it requires? Say you have libmyroutine.so and you are trying to create libmyjni.so: g++ --shared ... -o libmyjni.so -L/appropriate/path -lmyroutine Now when you ldd libmyjni.so it should show a depend