This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes import sun.net.ftp.FtpClient - Error under Java 1.3 and below Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "import sun.net.ftp.FtpClient - Error under Java 1.3 and below" Watch "import sun.net.ftp.FtpClient - Error under Java 1.3 and below" New topic
Author

import sun.net.ftp.FtpClient - Error under Java 1.3 and below

Gurkha Bahadur
Greenhorn

Joined: Dec 20, 2002
Posts: 1
Hello,
I am implementing FTP using import sun.net.ftp.FtpClient.
It works peachy fine under J2SDK1.4.0 but throws the following error under JDK1.3
sun.net.ftp.FtpProtocolException: STOR filename
PLEASE HELP!
Thanks
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Hmmm. sun.* classes are not part of the public Java API and can break from one version to the next. If you require full ftp client functionality not supplied by the core Java API, then try this LGPL client library, the NetComponents multi-protocol libary or Jakarta Commons Net.
- Peter
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1865
hi Gurkha
can u do printStackTrace() and provide us the complete error?
u can also decompile the sun.net.ftp.FtpClient code to see whats there in STOR instruction execution (which is actually a put command in ftp)...
its weired because it doesn't do whole lot in put() method of FtpClient that issues ftp command STOR with a filename...
regards
maulin


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
 
 
subject: import sun.net.ftp.FtpClient - Error under Java 1.3 and below
 
Similar Threads
Accessing default package classes
FTP
TelnetProtocolException
"import org.apache.http.HttpRequest;" Cannot be Resolved
Problems with encoding and files