I use Apache Commons to retrieve files from a remote server using sftp. I the URL to the file is stashed away and serialized. When deserializing it I get the following exception
java.net.MalformedURLException: unknown protocol: sftp
The same thing happens when I do this
new URL(url.toString());
Where url is the url to the file retrieved by apache commons. I have aded the dependency to both apache commons and jsch. How can I solve this?