Java applications access a Windows DLL by using a JNI (Java Native Interface) wrapper. The JNI wrapper is a C program that converts Java calls into C calls.
This demo includes sample programs for the java application (AduJava.java) and the JNI wrapper (AduJava.c). The AduHid.dll library is provided by Ontrak Control Systems Inc as a binary file.
The run-time component of AduJava.java is the compiled byte codes in AduJava.class. The run-time component of AduJava.c is the AduJava.dll library. The following diagram shows how the source code relates to the run time components.
The AduJava example was created as follows:
Here is a graphic of the files, tools and their relationships.
Some other files are provided as part of the demo.
AduJava Help File Version 1.0.0.0
Copyright 2005 Ontrak Control Systems Inc.