簡體   English   中英

在Linux / Debian上如何在java.library.path中包含目錄?

[英]How to include a directory to java.library.path on Linux/Debian?

我想將/usr/lib/oracle/11.2/client64/lib添加到java.library.path以便在運行java -XshowSettings:properties時顯示java -XshowSettings:properties如何做到這一點?

我正在運行Linux / Debian

您可以通過將包含目錄添加到LD_LIBRARY_PATH來完成此操作,例如**

導出LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/ Desktop / pathOfContaininglibaryDirectory

**到您的bashrc文件中。然后您需要通過命令刷新bashrc文件

來源〜/ .bashrc

然后運行,您可以運行java命令( java -XshowSettings:properties )以查看它將在user.dir下的所有屬性。

我想補充一點

如果要在/etc/profile設置系統環境並立即進行驗證(不重新啟動),

通過命令刷新配置文件. /etc/profile . /etc/profile (DOT SPACE /etc/profile

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM