我試圖運行在Netbeans中成功創建一個.jar文件,我收到以下錯誤:無法確定當前目錄
Error occurred during initialization of VM java.lang.Error: Properties init: Could not determine current working directory. at java.lang.System.initProperties(Native Method) at java.lang.System.initializeSystemClass(System.java:1070)
,我鍵入運行.jar的命令是
java -jar "/path to the dist forlder/EOPPrototype.jar"
我的類路徑如下:
CLASSPATH=/opt/netbeans-7.1.2/ide/modules/ext/mysql-connector-java-5.1.13- bin.jar:/h/USERS/local/pagola/NetBeansProjects/mylib/dist/mylib.jar:/h/USERS/local/pagola/NetBeansProjects/EOPPrototype/build/classes:.
我在想什麼?
謝謝。從高位目錄導航到低位目錄,然後重新運行我的命令也爲我解決了這個問題。 – yochannah