> I am using JNI to access C++ api in Linux 9.0,but i dont know how to
> create .so file in in Linux and also i dont know how to create .lib
> file.
Last I checked, Linux was up to about 2.6.16.
You don't need any .lib files.
To create a .so (shared object):
compile:
gcc -D_REENTRANT -fPIC
-I $JDK/include -I $JDK/include/linux
-c mylib.cpp
link:
gcc -shared mylib.o -o libmylib.so
(or maybe: gcc -shared mylib.o -lstdc++ -o libmylib.so)
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e