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:
file:/home/james/projects/wordnet/wordnet30/rdf/Manifest.ttl (No such
file or directory)
Javadoc to the rescue:
The File constructor takes an abstract path name as argument, not the toString representation of a URL.
Besides,
toURLis deprecated. You might usetoURI, and reconstruct the file with this URI.