Using the Raw Native Interface RNI
RNI
Index
Index
Next
Next

Introduction

This article outlines the Microsoft Raw Native Interface (RNI) for implementing native code with the Microsoft Win32 VM for Java (Microsoft VM). The goal of RNI was to allow as much code as possible to be re-used between the various virtual machines (VMs) 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 the working set).

Raw Native Interface Enhancements for SDK 2.0 Preview Release

A Simple Example

Accessing Fields

Garbage Collection Issues

Calling Java Methods

Object Creation

Throwing Java Exceptions from Native Code

Synchronization

Miscellaneous


© 1997 Microsoft Corporation. All rights reserved. Legal Notices.