Getting Started with JNI and C under Windows
问题 I'm new in Java learning and first time want to get start JNI. And I am working with Cygwin and I have created a file with .java (Helloworld.java) extension as follows: class HelloWorld { private native void print(); public static void main(String[] args) { new HelloWorld().print(); } static { System.loadLibrary("HelloWorld"); } } Then I compile the file through the command line ( javac Helloworld.java ) after that create a native header file through command javah –jni Helloworld Then also