java.lang.ClassNotFoundException

166 views
Skip to first unread message

Natthu

unread,
Jul 21, 2009, 3:42:28 AM7/21/09
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 ?

Don Brown

unread,
Jul 26, 2009, 12:59:33 AM7/26/09
to enchant...@googlegroups.com
Looks like you are missing the ganymed-ssh2 library. You can download it here:

http://www.ganymed.ethz.ch/ssh2/

Don
Reply all
Reply to author
Forward
0 new messages