Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 84234 invoked by uid 500); 30 Jul 2003 15:35:37 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 84172 invoked from network); 30 Jul 2003 15:35:36 -0000 Received: from mx13.sac.fedex.com (199.81.197.53) by daedalus.apache.org with SMTP; 30 Jul 2003 15:35:36 -0000 Received: from mail-e1000-1.prod.fedex.com (inet03.prod.fedex.com [199.81.10.43]) by mx13.sac.fedex.com (8.12.3/8.12.3) with SMTP id h6UFZcUP095003 for ; Wed, 30 Jul 2003 10:35:38 -0500 (CDT) (envelope-from wendi.sisson@fedex.com) Received: from inet03.prod.fedex.com(199.81.10.43) by mail-e1000-1.prod.fedex.com via csmap id 13078; Wed, 30 Jul 2003 05:37:28 -0500 (CDT) Received: from netsvr01 (netsvr01.prod.fedex.com [199.81.10.27]) by inet03.prod.fedex.com (8.12.9/8.12.9) with ESMTP id h6UFZaMW013501 for ; Wed, 30 Jul 2003 10:35:36 -0500 (CDT) Received: from fedex.com ([199.82.245.87]) by emmsvr01.prod.fedex.com (iPlanet Messaging Server 5.2 Patch 1 (built Aug 19 2002)) with ESMTP id <0HIU00GY4GNCIG@emmsvr01.prod.fedex.com> for user@ant.apache.org; Wed, 30 Jul 2003 10:35:36 -0500 (CDT) Date: Wed, 30 Jul 2003 10:35:26 -0500 From: Wendi Sisson Subject: optional.jar - why doesn't ant find it in ANT_HOME\lib? To: user@ant.apache.org Message-id: <3F27E5BE.814A2919@fedex.com> Organization: FedEx Services MIME-version: 1.0 X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am attempting to use the optional ftp task with ant 1.5 in Windows 2000 Professional. I run ant from the command-line, and I get this standard error (below). I have read the ant FAQ as well as done a Google search on this issue. I have the feeling the answer is obvious, but I'm momentarily at a dead-end, and would appreciate any suggestions of what to try next. "D:\opt\TradeOne\build.xml:110: Could not create task of type: ftp. Common solutions are to use taskdef to declare your task, or, if this is an optional task, to put the optional.jar in the lib directory of your ant installation (ANT_HOME)." This error leads me to believe ant cannot find the optional.jar. However, I believe I am explicitly following the instructions in the "Installing Ant" and "Library Dependencies" sections of the Ant manual. I have both the optional.jar and the NetComponents.jar in D:\opt\ant\lib. I have an environment variable ANT_HOME (D:\opt\ant), and I have added D:\opt\ant\bin to my PATH. I don't think I should have to add anything to my CLASSPATH because the Ant manual states that optional external libraries "may either be placed in Ant's lib directory, where they will be picked up automatically, or made available on the system CLASSPATH environment variable." However, to be safe I have also added "D:\opt\ant\lib\optional.jar;D:\opt\ant\lib\NetComponents.jar" to my CLASSPATH. Can anyone provide a pointer about what else I might check? I appreciate your help. Wendi -- Wendi Sisson Systems Programmer International Trade Development FedEx Services (901) 263-6695 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org