将文件名转换为URL()后,Java IO FileNotFoundException [英] Java IO FileNotFoundException after converting file name toURL()
本文介绍了将文件名转换为URL()后,Java IO FileNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是Jython代码(尽管这可能不是Jython特有的问题)...
Here is the Jython code (although this may not be a Jython-specific issue)...
file_name = "Manifest.ttl"
file_url = File(file_name).toURL()
f = File(file_url.toString())
java.io.FileNotFoundException:java.io.FileNotFoundException: 文件:/home/james/projects/wordnet/wordnet30/rdf/Manifest.ttl(没有这样的文件) 文件或目录)
java.io.FileNotFoundException: java.io.FileNotFoundException: file:/home/james/projects/wordnet/wordnet30/rdf/Manifest.ttl (No such file or directory)
推荐答案
查看全文