Java FTP Problem

Hi to all,

i am using org.apache.commons.net.ftp pacage to get files from FTP server.

everything is going fine ,connection is laso created but there is Exception like...

Connected to server

230 Logged on

UNIX Type: L8

/

Exception in thread"main" java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternException

at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createUnixFTPEntryParser(DefaultFTPFileEntryParserFactory.java:169)

at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEntryParser(DefaultFTPFileEntryParserFactory.java:94)

at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2358)

at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141)

at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2188)

at successFTP.main(successFTP.java:29)

So,why this exception is occured and how can i solve it.

Please give any reason!!!

Ranvijay Singh

[1091 byte] By [CookBookJa] at [2007-11-27 0:57:37]
# 1
It appears the JVM can't find the class org.apache.oro.text.regex.MalformedPatternException. Download the ORO-jar here, and add it to your classpath: http://jakarta.apache.org/site/downloads/downloads_oro.cgi
prometheuzza at 2007-7-11 23:31:11 > top of Java-index,Core,Core APIs...
# 2
If there is one thing the Apache people need to fix it is their lists of package dependencies. They are never complete.
ejpa at 2007-7-11 23:31:11 > top of Java-index,Core,Core APIs...
# 3
Yep, include the Jakarta ORO package.I have a writeup on how to use Commons Net for FTP transfers. You can see it at: http://timarcher.com/?q=node/56
timarcher52a at 2007-7-11 23:31:12 > top of Java-index,Core,Core APIs...