hi,
i have downloaded the enchanter-core jar file and i have included it
in the build path ...
but it doesnt run ...
my code is :
import java.io.IOException;
import org.twdata.enchanter.SSH;
import org.twdata.enchanter.impl.DefaultSSH;
public class NXScanner {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
SSH ssh = new DefaultSSH();
ssh.connect("10.112.201.101", 22, "root", "ca$hc0w");
ssh.waitFor("]$");
ssh.sendLine("ls -lrt");
System.out.println(ssh.getLine());
ssh.disconnect();
}
}
it throws the exception java.lang.ClassNotFoundException on the line
new DefaultSSH()
at line num 38 in DefaultSSH.java
can you please help me ?