Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

java.lang.NoClassDefFoundError: com/jcraft/jsch/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.
java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException Reviewed by Edward Legaspi on Thursday, February 24, 2011 Rating: 5

No comments:

Powered by Blogger.