• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

NoClassDefFoundError..

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic