Java™ Native Interface

Documentation Contents

JavaTM Native Interface (JNI) is a standard programming interface for writing Java native methods and embedding the JavaTM virtual machine* into native applications. The primary goal is binary compatibility of native method libraries across all Java virtual machine implementations on a given platform.

JNI 6.0 API Specification

Java Native Interface 6.0 Specification

This brief specification describes how the AWT package is designed to use JNI mechanisms to display objects on Solaris, Linux and Windows platforms.

JNI API Enhancements

  • A shared stub is a single JNI native method that can dispatch to many C functions. You can download the complete example from here:
  • JNI Enhancements will report further enhancements to this technology as they are added.

    More Information

    For JNI FAQs and information about the book The Java Native Interface: Programmer's Guide and Specification, see this document on the Java Software website: Java Native Interface Tips

    *As used on this web site, the terms "Java virtual machine" or "JVM" refers to a virtual machine for the Java platform.

    Copyright © 2007 Sun Microsystems, Inc. All Rights Reserved.

    Please send comments to: