Explain how to access native operating system calls from my Java program.
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.
Comments
Post a Comment