我怎樣才能獲得系統變量的值,它存在於如何在Java中獲得系統變量值?
MyComputer -> Properties -> Advanced -> Environment Variables -> System Variables
?
編輯
我用System.getenv()
方法。
在打印值,如果我給
System.out.println(System.getenv("JAVA_HOME"));
和它顯示,如果我嘗試同樣由我
System.out.println(System.getenv("DBE"));
您可以嘗試重新啓動請求進程(在我的情況下是NetBeans)。 – Kotodid 2013-08-29 05:47:30
我觀察到從eclipse重啓選項不起作用。只需關閉應用程序,然後重新啓動。 – Yasin 2016-11-01 13:35:03