Beginning JNI with NetBeans C/C++ Pack 6.0, Part II, Linux
The tutorial will take you through the creation of a sample application which uses JNI to execute some native code written in the C programming language. For the Java part of the application you will use NetBeans IDE 6; for the C part – NetBeans C/C++ Pack 6.
You will start off by creating a simple Java project, adding a native method to it and then implementing this method in C using NetBeans C/C++ Pack 6.0. This is the second part of the tutorial that covers the creation of a sample JNI application in the Ubuntu Linux 7.04 operating system.
Read more..http://cnd.netbeans.org/docs/jni/nb6-linux/beginning-jni-linux.html