How can I point to two differents java.library.path
in eclipse project - run configurations? I need these two libraries:
我如何在eclipse项目中指向两个不同的java.library.path - 运行配置?我需要这两个库:
-Djava.library.path=/opt/hdf-java/build/bin
-Djava.library.path=/opt/opencv-2.4.10/build/lib
Regards.
2 个解决方案
#1
On Linux, use colon :
as separator (as you will do with the classpath option) as in:
在Linux上,使用冒号:作为分隔符(与使用类路径选项一样),如下所示:
-Djava.library.path=/opt/hdf-java/build/bin:/opt/opencv-2.4.10/build/lib
#2
Use the platform's File.pathSeparator
, i.e. ;
on Windows and :
on *nix, to separate directories, just like you would separate the directories in the classpath.
使用平台的File.pathSeparator,即;在Windows和:on * nix上,分隔目录,就像分开类路径中的目录一样。
e.g. Windows
:
-Djava.library.path=C:/dir1;C:/dir2
or *nix
:
-Djava.library.path=/dir1:/dir2
#1
On Linux, use colon :
as separator (as you will do with the classpath option) as in:
在Linux上,使用冒号:作为分隔符(与使用类路径选项一样),如下所示:
-Djava.library.path=/opt/hdf-java/build/bin:/opt/opencv-2.4.10/build/lib
#2
Use the platform's File.pathSeparator
, i.e. ;
on Windows and :
on *nix, to separate directories, just like you would separate the directories in the classpath.
使用平台的File.pathSeparator,即;在Windows和:on * nix上,分隔目录,就像分开类路径中的目录一样。
e.g. Windows
:
-Djava.library.path=C:/dir1;C:/dir2
or *nix
:
-Djava.library.path=/dir1:/dir2