How to Fix Noclassdeffounderror With Jschexception

Encountered this problem?
java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException

Already tried the jsch.jar in classpath of your system variables? Or in eclipse build path but still failed?

Often when you build your project in ant, ant system will not lookup at classpath or buildpath it has its own settings. So there are 2 things you can do:

1.) Add the jsch.jar in ant lib folder usually:
ANT_INSTALL_FOLDER\lib

2.) In eclipse, open preference, type ant in the filter. On the right panel on the classpath tab, Global Entries add the jsch.jar. See screen.

0 Comments

Post a Comment

Post a Comment (0)

Previous Post Next Post
NERV Open Source
Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.