Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError..

 
Hemalatha Ramasamy
Greenhorn
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..
 
Matt Harrah
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic