All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbrew.nativ.validator.SayHi Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.1.0-beta.6
Show newest version
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();
	}
	
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy