NoClassDefFoundError in Eclipse using JSch

Viewed 45

I am trying to connect to a remote server and send files using JSch on Eclipse. When I run my code, I am getting the error:

"Error: Unable to initialize main class ASN Caused by: java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException"

I don't understand this error because I do have the class "JSch Exception" included along with the JAR file. Attached are pictures of my main class with the error on the bottom console and the JSch Exception class that is being used by this project. Main class with error

JSch Exception Class being used

0 Answers
Related