I was trying to use JSch to connect to a mysql via ssh. According to JSch website, http://www.jcraft.com/jsch/ it should work with j2se 1.4 and up, "no additional libraries required". I have jdk 1.7 installed. Howver got the error saying "package com.jcraft.jsch does not exist, import com.jcraft.jsch.JSch;" when I compiled my java code. I wonder how to get it to work.
Add the JSch JAR in the application "lib" folder.
Or update your system class path with JSch.JAR
in Windows
Go to
Advance System settings --> Advanced (tab) --> Environment Variables --> User Variables
Add
CLASSPATH = %CLASSPATH%;C:\LOCATION OF THE JAR\JSch.jar