Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown


Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i try to FTP, i am getting the following error
java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
set path=%path%;C:\jdk\jdk13102\bin;P:\apache-ant-1.6.5\bin;
set CLASSPATH=%CLASSPATH%;P:\apache-ant-1.6.5\lib\ant.jar;P:\apache-ant-1.6.5\lib\ant-commons-net.jar;P:\apache-ant-1.6.5\lib\jakarta-oro-2.0.8.jar;P:\apache-ant-1.6.5\lib
set JAVA_HOME=C:\jdk\JDK13102
set ANT_HOME=P:\apache-ant-1.6.5

please let me know what the problem is..
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A really good page to look at is the "library dependancies" page under "optional tasks" in the online docs, which has complete information, but to summarize:

ftp, rexec and telnet tasks all require both jakarta-oro 2.0.1 or later and commons-net in the classpath

Get jakarta-oro here
Get commons-net here
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic