Using the Raw Native Interface Previous
Previous
Raw Native Interface
Raw Native Interface
Next
Next

Introduction

This document outlines Microsoft's "Raw Native Interface" for implementing native code with the Microsoft VM for Java. The goal of RNI was to allow as much code as possible to be re-used between the various VM's available at the time 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 working set).

A Simple Example
Accessing Fields
Garbage Collection Issues
Calling Java Methods
Object Creation
Exceptions
Synchronization
Misc


© 1996 Microsoft Corporation. All rights reserved.