The native library, Java JNI bindings and Java classes are built using the same build system which has the following requirements:
Perl is required to generate much of the JNI code as well as many of the Java classes. The ant build system uses a modified version of
cpptasks which works on all platforms supported by SIGAR. The native library can be used by the following languages:
Example build:
% tar -zxf hyperic-sigar-1.6.4-src.tar.gz% cd hyperic-sigar-1.6.4-src/bindings/java% ant |
Results in:
% ls -1 sigar-bin/liblibsigar-universal-macosx.dylibsigar.jar |
Test using:
% java -jar sigar-bin/lib/sigar.jar test |