You must use a directory that is accessible when running tests. The compiled native libraries are loaded on your platform by calling System.loadLibrary("libname") method where "libname" is the appropriate library name (for example "jckjni" for JNI tests).

Note
Setup for the tests that use native libraries is described in detail in the "Test-Specific Information" chapter of the Java Compatibility Kit User'sGuide.