Hi
we want to know that how to access native operating system calls from my Java program.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted May 1, 2012, 6:01 AM
To access native operating system calls from my Java program JNI is used. Java native Interface (JNI) is a programming framework that allows Java code to interact with code written in another language, typically C or C++. JNI enables one to write native methods to handle situations when an application cannot be written entirely in the Java programming language. It is also used to modify an existing application which is written in another programming language so that it can be accessible to Java applications. Many of the standard library classes depend on JNI to provide functionality to the developer and the user. The Java Development Kit (JDK) provides tools and library routines that help the Java programmer interface with native code. The system calls are written in C and C++ so to access these call JNI is used.
Please refer the below link
http://en.wikipedia.org/wiki/Java_Native_Interface
http://marakana.com/bookshelf/java_fundamentals_tutorial/_java_native_interface_jni.html
http://www.ibm.com/developerworks/java/library/j-jni/
Thanks
VulpesPosted Apr 30, 2012, 2:51 PM
Check out this article for an introduction to this topic:
http://www.javamex.com/tutorials/jni/