阅读背景:

求助,java无法加载指定文件/URL:C:Users\6鳿AppData\Local\Temp\javaws20

来源:互联网 
异常错误
CouldNotLoadArgumentException[ 无法加载指定的文件/URL: C:\Users\6鳿AppData\Local\Temp\javaws20]
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
包装的异常错误
java.io.FileNotFoundException: C:\Users\6鳿AppData\Local\Temp\javaws21 (文件名、目录名或卷标语法不正确。)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

4 个解决方案

#1


路径有中文吧?

#2


引用 1 楼 fangmingshijie 的回复:
路径有中文吧?
那路径应该怎么改呀

#3


这个问题解决了吗

#4


filename = URLEncoder.encode(filename, "UTF-8"); 

分享到: