How to do JNI in Linux
hi guys,
i am new to Linux plotform
i have some .so files writen in C++
and i have the Java code. But how to call the methods in .SO file from Java thru JNI.
thanx in advance.
Subbu
hi guys,
i am new to Linux plotform
i have some .so files writen in C++
and i have the Java code. But how to call the methods in .SO file from Java thru JNI.
thanx in advance.
Subbu
Subbu,
Here's a link to a short tutorial on using JNI [ http://www.javaworld.com/javatips/jw-javatip141.html ]. I find working thru even a simple tutorial to be helpful. The other place is the following link [ http://java.sun.com/docs/books/jni/html/jniTOC.html ], although I'd work thru one or more tutorials before diving into the Sun docs.
hth,
adym
Thank you colin,
i hope this will be useful for me.
i will let u know once i got the output