Topic: 那位大侠有sun.net,sun.net.ftp包

  Print this page

1.那位大侠有sun.net,sun.net.ftp包 Copy to clipboard
Posted by: radyjx
Posted on: 2005-09-20 11:09

那位大侠有sun.net,sun.net.ftp包下载的地址

2.Re:那位大侠有sun.net,sun.net.ftp包 [Re: radyjx] Copy to clipboard
Posted by: why
Posted on: 2005-09-20 11:28

sun.net.ftp comes with JDK, doesn't it?
I am not sure, since I didn't and won't use it.

Why Developers Should Not Write Programs That Call 'sun' Packages
http://java.sun.com/products/jdk/faq/faq-sun-packages.html

Try Apache Commons Net instead
http://jakarta.apache.org/commons/net/

or other FTPClient
http://www.javaworld.com/javaworld/jw-04-2003/jw-0404-ftp_p.html

3.Re:那位大侠有sun.net,sun.net.ftp包 [Re: radyjx] Copy to clipboard
Posted by: radyjx
Posted on: 2005-09-20 16:06

感谢楼上的
的确在jdk 1.3中是包含的有sun.net.ftp.*和sun.net.*这两个包
看书上写的例子有误
FTPClient myFTP = null;
改为
FtpClient myFTP = null;
尽信书不如无书这句话是对的


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923