The following references http://lilishouwangzhe.blog.163.com/blog/static/185877030201223191957573/
=========================================================
FTP was used in the Java project, resulting in this error. Workaround:
Sun.net in the bag, in eclipse the default is not allowed. The workaround is to customize access rules
Project Properties->java Builder path->libraries Tag, click on Access rules in the JRE System Library, add sun/** to accessible, If the item exists, edit it.
=========================================================
The following references http://blog.csdn.net/hexin373/article/details/7175325
=========================================================
Just put windows-preferences-java-complicer-errors/warnings inside the deprecated and restricted API in forbidden references (access Rules) can be compiled by selecting the warning.
=========================================================
=========================================================
Outsourcing again referencing restricted jar package overwrite restricted jar
Project-->build Path-->order and Export---> Adjustment order (covered below)
=========================================================
=========================================================
You only need to remove the JRE system library in Project build path, add the Library JRE system library, and it will be all right after recompiling.
=========================================================
=========================================================
ADD External JARs, select JDK, Preferences, Java----installed JREs, Windows
=========================================================
Access restriction:the type ftpclient is not acce