sun论坛上的回答:>If you wish to make use of the ftp protocol in your java app without too much >trouble you might want to look at api which has already been made and free too. >You can get it and a whole lot of other components here : > >http://jakarta.apache.org/commons > >The specific component is called Net and is available here: > >http://jakarta.apache.org/commons/net > >Try it out and see if it meets your needs.
哦,sorry.look here:http://forum.java.sun.com/thread.jsp?forum=31&thread=380795
>
>http://jakarta.apache.org/commons
>
>The specific component is called Net and is available here:
>
>http://jakarta.apache.org/commons/net
>
>Try it out and see if it meets your needs.
sun.*
sun.*
都在 jdk/jre/lib/rt.jar里面,加入路径就可以了,但其他公司的虚拟机运行这些没有建立文档的包可能会出问题。
我用的是win2k server
加上后还是说
D:\myjava\phptest.java:1: package sun does not exist
你确信你的rt.jar在那个目录下吗?你打开那个jar文件看了吗?确信里面有sun目录吗?还有,你重新启动你的集成环境/编辑器/命令行窗口了吗?
无奈了
我怎么都不成功
import sun.*;
总是找不到sun包