Natthu
unread,Jul 21, 2009, 3:42:28 AM7/21/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to enchanter-users
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 ?