Multiple directories in -Djava.library.path

user4888784 picture user4888784 · May 11, 2015 · Viewed 16.7k times · Source

How can I point to two differents java.library.path in eclipse project - run configurations? I need these two libraries:

-Djava.library.path=/opt/hdf-java/build/bin
-Djava.library.path=/opt/opencv-2.4.10/build/lib

Regards.

Answer

Umberto Raimondi picture Umberto Raimondi · May 11, 2015

On Linux, use colon : as separator (as you will do with the classpath option) as in:

-Djava.library.path=/opt/hdf-java/build/bin:/opt/opencv-2.4.10/build/lib