Error: Unable to access xxx.jar

在cmd中運行java -jar xxx.jar出現以下錯誤:
Error: Unable to access xxx.jar
解決方法:java

  1. 使用絕對路徑:java -jar D:\Program Files (x86)\xxx.jar
    此時依然報錯:
    Error: Unable to access jarfile D:\Program
  2. 添加雙引號:java -jar "D:\Program Files (x86)\xxx.jar"
相關文章
相關標籤/搜索