>I have token a lloke at the Sun's JNI site. I leared a lot from that
WEB
>site. However in the 5th step -- to create a shared library, it is
just
>Solaries/win examples. I am working on Linux box. when I try to
comiple
>the shared library as following:
>
>(the original command is cc -G -I/usr/local/java/include
>-I/usr/local/java/solaris HelloWorldImp.c -o libhello.so)
>
>cc -I /usr/local/java/include HelloWorldImp.c -o hello
>
>I will get the error message
>***** error message ****
>/usr/local/java/include/jni.h:44: jni_md.h: No such file or directory
>****
>
>How can I create a shared library on linux? (what is the 'correct'
>command.)
The issue is that you are not making the JNI header files available to
the compiler. If you make a symbolic link or simply copy some files
you'll be okay (i.e. cp -r $JAVA_HOME/lib/* /usr/include). Make sure
you go in those subdirectories because that's where jni_md.h would be.
Ken
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]