This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAVA + FTP  RSS feed

 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have downloaded Commons Net jar file from apache.

I have also created a class in the same structure as http://www.informit.com/guides/content.asp?g=java&seqNum=40&rl=1

but when i connect to the ftp server and try to change to a directory i get this exception back:
java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternException

Any ideas?

The code where the exception is occuring is:

ftp.changeWorkingDirectory(folder);
FTPFile[] files = ftp.listFiles();


Also what is the folder details for the base directory?

Thanks,

Niall
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That class is part of the Jakarta ORO package. If the Net download didn't include it, you can get it from jakarta.apache.org.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!