I am getting this error when I try to open a file:
java.io.FileNotFoundException: D:\\Portable%20Programs\\Android%20Development\\workspace3\\XXX-desktop\\bin\\W
The preferred way to convert a file: URL into an actual File is this:
file:
File
File file = new File(url.toURI());
This takes care of all checks and quoting/escaping.
Using getPath() instead will leave these odd bits up to you.
getPath()