System.loadLibrary("hello"); // Load native library hello.dll (windows)
// or libhello.so (Unixes) at runtime.
// This library contains a native method sayHello()
// Declare an instance native method sayHello() which receives no parameter
private native void sayHello();
public static void main(String[] args) {
new CraftJNI().sayHello(); // Create an instance and invoke native method