本帖最后由 hacket 于 2013-4-4 17:37 编辑
- URL uri = ClobDemo.class.getClassLoader().getResource("cn/zengfansheng/clob/java.txt");
- System.out.println(uri);
复制代码 错误如下:- java.io.FileNotFoundException: I:\JavaWeb%e7%ac%94%e8%ae%b0\MyEclipse10_Win7\myday13\WebRoot\WEB-INF\classes\cn\zengfansheng\clob\java.txt (系统找不到指定的路径。)
- at java.io.FileInputStream.open(Native Method)
- at java.io.FileInputStream.<init>(FileInputStream.java:138)
- at java.io.FileReader.<init>(FileReader.java:72)
- at cn.zengfansheng.clob.ClobDemo.write(ClobDemo.java:42)
- at cn.zengfansheng.clob.ClobDemo.main(ClobDemo.java:19)
复制代码 请问如何解决中文路径找不到的问题?
|