JNI problem

Brian Youmans 3diff@gnu.org
Wed Oct 18 07:15:00 GMT 2000


Hi All
            I am doing a project on JNI.My work is to use a set of C APIs
present in an archive file and use jni code to call that api and perform the
respected action.I got problem while forming the shared library.Because the
API I am calling is thrown as a run time error like "relocation error
/XXX.so and symbol API name :not found (XXX.so).I came to a conclusion that
I didn't include my C APIs archive file properly.Did anybody face this kind
of problem please let me know about.I compiled the program as follows.

gcc -G -I/java  -I/java/solaris -I/archivefile  XXX.c -o
libSharedfilename.so.
    Anything more required please let me know.
Thanks
Prasad(prasad_as@hotmail.com or prasad@secureasia.com )







More information about the Gcc-help mailing list