howto run JSCH with jar

  • Lazarus71

    Lazarus71 - 2011-03-24

    Can anyone tell me how can i use jsch from command line with jsch-0.1.44.jar without compile it ???


  • Lazarus71

    Lazarus71 - 2011-03-24

    when i try to use "java Shell -cp jsch-0-1-44.jar " or "java -cp jsch-0-1-44.jar " after compile with javac -cp jsch-0.1.44.jar
    i have this message.

    D:\>java Shell -cp d:\jsch-0.1.44.jar

    Exception in thread "main" java.lang.NoClassDefFoundError: com/jcraft/jsch/UserInfo
    Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.UserInfo
            at$ Source)
            at Method)
            at Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class: Shell.  Program will exit.

    i am a new bye with java

    please help me


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks