• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAVA + FTP

 
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic