hello all,
i am using redhat linux, i compiled HelloNative.java, generated .h file, generated shared library till here it is fine, but when i compile HelloNativeTest.java file it is giving me Error at line
i have included my directory(named jni) to lib path as LD_LIBRARY_PATH=.:/root/jni
The problem is not related to JNI. It's a Java class it can't find.
Are HelloNative.class and HelloNativeTest.class in the same directory? If not, you have to set the classpath properly.