Skip to Content

Java Web Dynpro SFTP

Hello SAP's gurus,

I want to put a file in server with SFTP protocol, within my Java Web Dynpro applicaiton.

I'm developing with NWDS 7.01 and Application Server Java (Netweaver) 7.0 with a SAP JVM versión 4.1

For that, I use jar "jsch-0.1.54.jar", my code is next:

With the previous code, I get the next message error:


It is posible with my version of JVM?

Is there a error in the code?

Best regards,

Victor Carmona

codigosftp.jpg (97.8 kB)
errorsftp.jpg (230.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 19, 2017 at 03:31 AM

    Hello Victor. Could you check whether you add jsch-0.1.54.jar in the build path or not? It seems that the classloader cannot find the jar file. thanks.

    Add comment
    10|10000 characters needed characters exceeded

    • Richard Zhao

      Thanks for your answer, it help me so much.

      The project had the .jar but the server did not.

      I forget add .jar file in my folder "lib"

      I paste directly the .jar file in my folder "lib", this resolved the issue.

      Best regards,

      Victor Carmona

  • Dec 19, 2017 at 02:21 PM

    Richard Zhao

    Thanks so much, I did "Add External JARs" jsch-0.1.54.jar in my project:

    Should I perform an activity on the server?

    Best Regards,

    Victor Carmona

    Add comment
    10|10000 characters needed characters exceeded