JNI JNI

JNI - Definition and Overview

The Java Native Interface (JNI) is a programming framework that allows Java code running in the Java virtual machine (VM) to call and be called by native applications (programs specific to a hardware and operating system platform) and libraries written in other languages, such as C, C++ and assembly.

The JNI is used to write native methods to handle situations when an application cannot be written entirely in the Java programming language such as when the standard Java class library does not support the platform-dependent features or program library. It is also used to modify an existing application, written in another programming language, to be accessible to Java applications.

The JNI framework lets a native method utilize Java objects in the same way that Java code uses these objects. A native method can create Java objects and then inspect and use these objects to perform its tasks. A native method can also inspect and use objects created by Java application code.

External links

Example Usage of JNI

marcvanderwoude: In JNI this week: First generation Chinese Christians spread the gospel through their businesses. Sign up at www.joenews.org.
akira_funahashi: Snow LeopardのJavaで32bitのJNIライブラリを使うときは VM args に -d32 をつけなきゃいけないよ、ってうちの4年生に教えてもらった。ありがとう田平!
denisearcoverde: O sorteio do twitter será no dia 25 de dezembro. Tem mais outros sorteios lá no blog, tudo biscoito fino: http://z.pe/JNI =)
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.