gpt4 book ai didi

JAVA - 'Provider "C“未安装”错误无法修复 :(

转载 作者:行者123 更新时间:2023-11-30 06:45:15 26 4
gpt4 key购买 nike

我有一个问题,我遇到了这个错误并且无法修复它:( 有任何帮助吗?

 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 .......

最佳答案

URI.create 方法需要 RFC 2396 格式的字符串。请参阅here.字符串“C:/Users/User/Desktop”无效。

关于JAVA - 'Provider "C“未安装”错误无法修复 :(,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43787062/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com