LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   sshexec problems with ant (https://www.linuxquestions.org/questions/programming-9/sshexec-problems-with-ant-614719/)

md_imranullah 01-19-2008 05:36 AM

sshexec problems with ant
 
hi people,
i tried connecting to a remote host using sshexec task of the ant file. but my system was unable to connect to the remote host. and it prompted out the error like this

$ ant -buildfile sshTry.xml
Buildfile: sshTry.xml

SSH:

BUILD FAILED
/home/Imran/workspace/JavaAntTry/XML/sshTry.xml:14: Problem: failed to create task or type sshexec
Cause: Could not load a dependent class com/jcraft/jsch/UserInfo
It is not enough to have Ant's optional JARs
you need the JAR files that the optional tasks depend upon.
Ant's optional task dependencies are listed in the manual.
Action: Determine what extra JAR files are needed, and place them in one of:
-/usr/local/ant/lib
-/home/Imran/.ant/lib
-a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem


Total time: 0 seconds
[imran@in4centos XML]$


i dont know what extra jar files to add. can anyone please list those files out.

cdbunch 04-06-2008 05:46 PM

Do you have the jsch JAR installed? If not you can get it at:

http://www.ibiblio.org/maven/jsch/jars/

Cameron Bunch


All times are GMT -5. The time now is 03:20 AM.