This demo is based on Beginning JNI with NetBeans C/C++ Pack