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
You need to unescape the %20 to spaces. e.g.:
%20
fileLocation = new String( Main.class.getProtectionDomain().getCodeSource().getLocation().getPath()) .replaceAll("%20", " ");