The Microsoft virtual machine supports the integration of Java with native code. These samples demonstrate some of ways in which Java can be integrated with native code, including using the Raw Native Interface (RNI), J/Direct, and Java/COM integration. For more information, see the following sections:
Integrating JavaBeans and ActiveX
Integrating Java and Win32 using J/Direct
Integrating Java and Windows using Raw Native Interface (RNI)
The following native code samples are provided.
Sample | Description |
Browser Applet Control | Location: \Samples\Native\BrowserAppletControl
Technologies: Native code Demonstrates:
|
Debugger | Location: \Samples\Debugger
Technologies: VM debugger interfaces, native code Demonstrates:
|
Invocation | Location: \Samples\Native\Invocation
Technologies: RNI Demonstrates:
|
IPersist | Location: \Samples\Com\Ipersist
Technologies: COM, native code Demonstrates:
|
Java/COM Apartment Model Threading | Location: \Samples\Com\JCOMApartment
Technologies: COM, native code Demonstrates:
|
Jexegen | Location: \Samples\Native\Jexegen
Technologies: Native code, packaging Demonstrates:
|
JView | Location: \Samples\Native\JView
Technologies: Native code Demonstrates:
|
NT Service | Location: \Samples\Com\NTService
Technologies: COM, native code, J/Direct, Windows Demonstrates:
|
Raw Native Interface | Location: \Samples\Native\Native_raw
Technologies: RNI Demonstrates:
|
RNI Security | Location: \Samples\Security\Rni
Technologies: Security, RNI Demonstrates:
|
Sample Monitor | Location: \Samples\Profiler\SampMon
Technologies: Profiler, native code Demonstrates:
|