How to avoid getting URL encoded paths from URL.getFile()?
This is due to a URL handling quirk in the API. You can work around this by converting the URL string to a URI first:
new URI(this.getClass().getResource(".").toString()).getPath()
This will produce a String as follows:
"C:\Users\current user\workspace\xyz\bin\something"