org.jbrew.nativ.validator.SayHi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of native-validator Show documentation
Show all versions of native-validator Show documentation
This library contains native facade implementations of the JBrew utility libraries with the Java Native Interface
(JNI). This set of libraries features specific optimizations for Unix-based systems in terms of performance
and memory. This is achieved through careful tuning using the C programming language to not only control for
garbage collection, but also to ensure maximum performance for elected library features. This library in particular
features example usages of the JNI in order to test hardware for usability.
package org.jbrew.nativ.validator;
/**
* A demonstration class which simply prints a char* to the console.
* @author Neal Kumar
*
*/
public class SayHi {
static {
//System.loadLibrary("hi_c");
}
private native void sayHi();
public void sayHiC() {
new org.jbrew.cbrew.validator.SayHiCBrew().sayHi();
}
public void sayHiJava() {
//System.out.println("Hello console! Called from Java!");
new org.jbrew.cbrew.validator.SayHiCBrew().sayHi();
}
}