Issue with FTP upload using org.apache.commons.net.ftp
Joined: May 04, 2007
Hi, I am using jdk1.4. I want to use org.apache.commons.net.ftp for uploading files to my server. I am using jakarta-oro-2.0.8.jar and commons-net-1.4.0.jars Below is the code snippet: .... FTPClient ftp = new FTPClient(); ftp.connect(serverName); ftp.login(userName, password); ftp.storeFile(serverName,in); ... after executing the file I get error at line FTPClient ftp = new FTPClient(); as :
Any suggestions to resolve the issue. Thanks in advance. [ May 15, 2007: Message edited by: Poonam Chaudhari ]
Joined: Mar 22, 2005
Welcome to JavaRanch.
That means that the library has been compiled for a newer version of the JVM than you are using. In this case, it requires Java 5 (which uses class file version 49.0) whereas you may have something older.
It sounds strange, though, as the release notes state that it should work even with JDK 1.3. To resolve it, you could always grab the source code and recompile it using your JDK version. [ May 15, 2007: Message edited by: Ulf Dittmer ]