Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-19-2008, 06:36 AM   #1
LQ Newbie
Registered: Jan 2008
Posts: 6

Rep: Reputation: 0
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


/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:
-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.
Old 04-06-2008, 06:46 PM   #2
LQ Newbie
Registered: Mar 2008
Posts: 13

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

Cameron Bunch


ant, fedora

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use "ant" from J2EE SDK instead of installed ant in Fedora ? pcuongx Linux - Server 2 02-27-2007 05:45 AM
ant for tomcat5 on FC5, problems with classpath/jar files rhoekstra Programming 0 05-24-2006 05:31 AM
Problems about ant simprince Programming 1 11-08-2005 10:53 AM
problem with ant os2 Programming 1 05-20-2005 01:13 AM
Jakarta Ant?? powadha Linux - Software 3 01-19-2004 01:46 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration