`
yaojingguo
  • 浏览: 212513 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

java.library.path property overrides LD_LIBRARY_PATH on ubuntu

阅读更多

System class has a method loadLibrary(libname) to load native library. If java.library.path property is set, this method seaches for libname in the path names specified by java.library.path property. If java.library.path property is not set, it searches for libname in the path names specified by LD_LIBRARY_PATH. java.library.path take precedence over  LD_LIBRARY_PATH. In other words, if java.library.path is specified, LD_LIBRARY_PATH is ignored. I have verified it with JDK 1.6 on Ubuntu.

 

This behaviour is not documented in JDK documentation. And I can't find an answer by googling. So I write down it here for people to reference.

 

 

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics