You can set it on the command line thus:
java -Djava.library.path=... <existing arguments (classpath, name of class to run etc.)>
and point it to the directory containing the relevant library.
More Related Contents:
- How to import a class from default package
- What is the native keyword in Java for?
- How to bundle a native library and a JNI library inside a JAR?
- How to return an array from JNI to Java?
- What makes JNI calls slow?
- How to obtain JNI interface pointer (JNIEnv *) for asynchronous calls
- Passing pointers between C and Java through JNI
- What does a JVM have to do when calling a native method?
- Exception 0xC0000005 from JNI_CreateJavaVM (jvm.dll)
- Java Native Access doesn’t do C++, right?
- How to compile dynamic library for a JNI application on linux?
- What is a native implementation in Java? [duplicate]
- How to call C++ from Java?
- Can I call Java from Node.js via JNI and how?
- How do I get a list of JNI libraries which are loaded?
- What is the ‘correct’ way to store a native pointer inside a Java object?
- Is there a Java library of Unix functions?
- Error “A JNI error has occurred. Please check your installation and try again in Eclipse x86 Windows 8.1”
- Getting active window information in Java
- Java – Loading dlls by a relative path and hide them inside a jar
- Use JNI instead of JNA to call native code?
- Event listener in Java without app having focus? (Global keypress detection)
- What is the quantitative overhead of making a JNI call?
- JNI – How to callback from C++ or C to Java?
- Pinning a Java application to the Windows 7 taskbar
- Is there any way to pass a Java Array to C through JNI without making a copy of it?
- How do I convert jstring to wchar_t *
- Unable to install rJava in R 3.0 in Ubuntu 13.04
- Using a java class from Delphi
- C++ ifstream.getline() significantly slower than Java’s BufferedReader.readLine()?