import com.sun.jna.Native;

public class Test {

    public static void main(String[] args) {
        Native.setProtected(true);
        NomoInterpreter lib = (NomoInterpreter) Native.loadLibrary("nomointerpreter", NomoInterpreter.class);
        NomoInterpreter.NomoCallbackStructure action = new NomoInterpreter.NomoCallbackStructure ();
        NomoInterpreter.NomoCallbackStructure [] actions = (NomoInterpreter.NomoCallbackStructure []) action.toArray (HelloWorld.callbacks.length);
        for( int i = 0; i< HelloWorld.callbacks.length; ++i){
            actions[i].callback = HelloWorld.callbacks[i];
        }
        lib.nomoInitialize (actions, "", 0); 
        lib.nomoTriggers ();
        lib.nomoFinalize (NomoInterpreter.nomoFinalizationFlag.NOMO_ANY_MODIFICATION.ordinal());
    }

}