Access restriction:the type ftpclient is not acce

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.