The phrase 'implementation class is not present' stuck out at me and I realized that ant-commons-net.jar contained the ftp implementation class, which in turn uses Oro and Commons-Net to support ftp'ing. ![]() This was after I had installed Oro and Commons-Net. When I ran it, I confirmed that the FTP task was not available:įtp : Not Available (the implementation class is not present) ![]() That generates a long list of features, installed jars, version numbers, etc. If you look in the ant/lib directory, all you'll see if ant-commons-net.pom, which is a Maven support file, but not the necessary jar file.Ī handy command to show you what's installed or not in your version of ant is: So, even if you install Jakarta-Oro and Commons-Net, you'll still get the missing libraries error above. However, by default, the version of Ant that is installed via the MacOSX Developer Tools does not provide that library. What wasn't clear is that you also need to have ant-commons-net.jar installed. Most information I found on the web correctly pointed out that according to the Apache Ant install instructions for optional tasks, such as FTP, you need to have the Jakarta Oro 2.0.8 (text manipulation) and Commons-Net 2.0 (networking protocol support) jar libraries installed. You'll see lots of instructions for setting your ANT_HOME environment variable, along with other settings, but that's not necessary with newer versions of Ant on MacOSX. My searches on the subject lead to multiple solutions, but they were aimed at earlier versions of Ant (1.7.X and below), somewhat complicated and turned out not to be what I needed for my version of Ant (1.8.1 on MacOSX 10.6.5). This is not a bug it is a configuration problem a directory added on the command line with the -lib argument This looks like one of Ant's optional components.Īction: Check that the appropriate optional JAR exists in Problem: failed to create task or type ftpĬause: the class. was not found. I thought I had installed everything I needed, but realized that I couldn't run the FTP task in Ant because of missing libraries. ![]() ![]() I recently had to reinstall the OS on the laptop I use primarily for work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |