Introduction to Using the Raw Native Interface
 
 

Java & Native Code    RNINext
Introduction to Using the Raw Native Interface     RNI Next

 


Introduction

This article outlines the Microsoft Raw Native Interface (RNI) for implementing native code with the Microsoft virtual machine (Microsoft VM). The goal of RNI was to allow as much code as possible to be re-used between the various available virtual machines (VMs) and hence it mirrors much of the features (both good and bad) of the original JDK. Typically, the only changes have been to better support the VM's internal object model (for speed) and to allow non-conservative garbage collection (to reduce the working set).
Raw Native Interface Enhancements for SDK Version 3.0 Pre-Release 2
A Simple Example
Accessing Fields
Garbage Collection Issues
Calling Java Methods
Object Creation
Throwing Java Exceptions from Native Code
Synchronization
Miscellaneous

Top © 1998 Microsoft Corporation. All rights reserved. Terms of use.