You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/08/16 23:06:28 UTC
DO NOT REPLY [Bug 36212] New: -
commons-net-1.4.0 cannot compile with my code
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36212>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36212
Summary: commons-net-1.4.0 cannot compile with my code
Product: Commons
Version: 1.4 Final
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: blocker
Priority: P2
Component: Net
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: rosie.briggs@fairoaks.matcomcorp.com
CC: rosie.briggs@fairoaks.matcomcorp.com
I downloaded commons-net-1.4.0 and tried to use it to compile my java file
(called FTPActiveDataSocket.java) and I get the following error which is
preventing me from moving using the commons-net-1.4.0 library:
C:\test>javac -deprecation -classpath commons-net-1.4.0.jar FTPActiveDataSocket.java
FTPActiveDataSocket.java:3: cannot access org.apache.commons.net.ftp.FTPClient
bad class file: commons-net-1.4.0.jar(org/apache/commons/net/ftp/FTPClient.class
)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
import org.apache.commons.net.ftp.FTPClient;
^
1 error
I am using JDK 1.3.1_04 and I cannot upgrade due to the fact that our product is
in production and uses iPlanet which uses JDK 1.3.1. When I compile with
commons-net-1.3.0, it's fine; however, I want to use commons-net-1.4.0 because I
get an exception when I use commons-net-1.3.0 when I call FTPClient.listFiles(
fileName ), no matter whether I use FTPClient.listFiles() or FTPClient.listFiles
with a specfic parser. Here's the exception I get with commons-net-1.3.0.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/oro/text/r
egex/MalformedPatternException
at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.cr
eateNTFTPEntryParser(DefaultFTPFileEntryParserFactory.java:134)
at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.cr
eateFileEntryParser(DefaultFTPFileEntryParserFactory.java:95)
at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.ja
va:2327)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2072)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2123)
at FTPClientTest.getRemoteFileInfoListFiles(FTPClientTest.java:277)
at FTPClientTest.main(FTPClientTest.java:375)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org