• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Gurkha Bahadur
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!