public class Native
{
        
        public static void main(String[] argv)
        {
                System.out.println("Before native call");
                                //call to native method
                mynative();
                System.out.println("After native call");
        }
                                //prototype for native method
        public static native void mynative();

                                //this is where Native.dll is loaded
        static
        {
        System.loadLibrary("native");
        }
}
