【发布时间】:2017-05-04 15:25:56
【问题描述】:
我有一个问题,我遇到了这个错误并且无法修复它:(任何帮助请?
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 我正在尝试使用 Apace 第一次使用 java 和 Netbeans IDE 编写 excel 文件
-
See the docs 创建路径。