Tested on 64-bit linux using Java 1.6

Using Java Native Access (JNA) for simplified calling to Ox DLL.

My version of Linux had a version of JNA that didn't work in the repository,
so had to download JNA 3.4.0 from https://github.com/twall/jna

To create a class for the Ox calls:

OxMetrics7/ox/dev/samples/oxlib/java> javac -classpath /usr/share/java/jna.jar ox/Ox.java

To compile CallObject:

OxMetrics7/ox/dev/samples/oxlib/java> javac -classpath /usr/share/java/jna.jar:. CallObject.java


To run, the Ox environment must be found:
OX7PATH="/usr/share/OxMetrics7/ox/include:/usr/share/OxMetrics7"; export OX7PATH

To run CallObject:

OxMetrics7/ox/dev/samples/oxlib/java> java -classpath /usr/share/java/jna.jar:. CallObject

==================================
Tested on 32-bit Windows using Java 1.7 and JNA 3.4.1 (which I installed to \Compiler\Java)

OxMetrics7\ox\dev\samples\object\win_java>javac -classpath \Compiler\Java\jna.jar ox\Ox.java

OxMetrics7\ox\dev\samples\object\win_java>javac -classpath \Compiler\Java\jna.jar;. CallObject.java

\OxMetrics7\ox\dev\samples\object\win_java>java -classpath \Compiler\Java\jna.jar;. CallObject
