LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-19-2008, 05:36 AM   #1
md_imranullah
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

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

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

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

Cameron Bunch
 
  


Reply

Tags
ant, fedora



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 04:45 AM
ant for tomcat5 on FC5, problems with classpath/jar files rhoekstra Programming 0 05-24-2006 04:31 AM
Problems about ant simprince Programming 1 11-08-2005 09:53 AM
problem with ant os2 Programming 1 05-20-2005 12:13 AM
Jakarta Ant?? powadha Linux - Software 3 01-19-2004 12:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:41 PM.

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