Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
java.lang.ClassNotFoundExcepti on
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Natthu  
View profile  
 More options Jul 21 2009, 3:42 am
From: Natthu <nat...@gmail.com>
Date: Tue, 21 Jul 2009 00:42:28 -0700 (PDT)
Local: Tues, Jul 21 2009 3:42 am
Subject: java.lang.ClassNotFoundException
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 ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Don Brown  
View profile  
 More options Jul 26 2009, 12:59 am
From: Don Brown <donald.br...@gmail.com>
Date: Sun, 26 Jul 2009 14:59:33 +1000
Local: Sun, Jul 26 2009 12:59 am
Subject: Re: java.lang.ClassNotFoundException
Looks like you are missing the ganymed-ssh2 library.  You can download it here:

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

Don


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »