Commons VFS and Java.net.URL - Adding support for “sftp://” protocol

前端 未结 5 2116
梦如初夏
梦如初夏 2021-01-04 01:45

We\'re trying to use Apache Commons VFS to access something over SFTP. It claims to support SFTP, however we\'re getting a MalformedURLException when it starts. Digging arou

5条回答
  •  囚心锁ツ
    2021-01-04 02:34

    See the list of dependencies that commons-vfs requires for sftp to work. Once JSch is in the classpath, your exception no longer happen. Have a look at Apache's Wiki for examples of connecting via sftp.

提交回复
热议问题