我有一個問題,我遇到了這個錯誤,無法修復它:(任何幫助請JAVA - 「供應商‘C’未安裝」錯誤不能修復:(
try {
Path p3 = Paths.get(URI.create("C:/Users/User/Desktop")); //This line is causing the error
writeToExcell(jTable,p3);
} catch (IOException ex) {
Logger.getLogger(AutomaticReOrder.class.getName()).log(Level.SEVERE, null, ex);
}
的錯誤是這樣的:?
`Exception in thread "AWT-EventQueue-0" java.nio.file.FileSystemNotFoundException: Provider "C" not installed
at java.nio.file.Paths.get(Paths.java:147)
at Products.AutomaticReOrder.jButton1ActionPerformed(AutomaticReOrder.java:130)
at Products.AutomaticReOrder.access$000(AutomaticReOrder.java:36)
at Products.AutomaticReOrder$2.actionPerformed(AutomaticReOrder.java:96)
at .......
BDW我試圖使用宇瞻到Excel文件寫爲F第一次在創建路徑時使用java和Netbeans IDE – kurt
[查看文檔](https://docs.oracle.com/javase/tutorial/essential/io/pathOps.html#create)。 –