title: java.lang.NoClassDefFoundError: com/jcraft/jsch/JSch error in JSP file
body: <p>I wrote a program that connect to remote LINUX machine and executes a command. I used <code>jsch-0.1.42.jar</code> file to connect to remote machine. My program working well and returning output. Now I would like to call method, which is declare inside in Servlet from JSP using the following code</p>
  
  <pre><code>&lt;% SSHCommandExecutor sshce = new SSHCommandExecutor();
  sshce.runCommnad();
  %&gt;
  </code></pre>
  
  <p>But I am getting following error </p>
  
  <pre><code>HTTP Status 500 -java.lang.NoClassDefFoundError: com/jcraft/jsch/JSch Servlet.service() for servlet jsp threw exception: java.lang.ClassNotFoundException: com.jcraft.jsch.JSch
  </code></pre>