`
lx休止符
  • 浏览: 13402 次
  • 来自: dsadsa
最近访客 更多访客>>
社区版块
存档分类
最新评论

Access restriction: The type FtpClient is not accessible【转】

 
阅读更多

在做ftp,代码中引用
import sun.net.ftp.FtpClient;
报如下错误
Access restriction: The type FtpClient is not accessible due to restriction on required library D:\Program Files\Java\jre6\lib\rt.jar



sun.net包里的,在eclipse里默认是不让用的。解决办法是自定义access rules

工程上右键->工程属性->java builder path->Libraries标签,点击JRE System Library里面的Access rules,add sun/** 为accessible,如果该项存在,就edit。

分享到:
评论

相关推荐

    import com.sun.image.codec.jpeg.JPEGImageEncoder;包的下载

    Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar 此时解决办法: Eclipse默认把这些受访问限制的API设成了ERROR。只要...

    java识别验证码.docx

    Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar 此时解决办法: Eclipse默认把这些受访问限制的API设成了ERROR。只要把...

    sun.misc.base64decoder.jar下载

     Access restriction: The type BASE64Decoder is not accessible due to restriction on required library C:\Program  files\java\jre6\lib\rt.jar  Access restriction : The constructor BASE64Decoder() is ...

    解决eclipse导入rt包问题

    在Eclipse中处理图片,需要引入两个包: ...Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar 解决方法就在这里

    Humble-Key-Restriction::cooking:Humble Bundle 锁区 Key 查看脚本

    Humble Key Restriction 描述 查看 Humble Bundle Key 的激活激活限制插件 它能帮你在 Humble 的 Download 界面显示 Key 的激活限制信息。 安装 安装 (推荐)、 或者其它用户脚本管理工具 安装脚本 就可以用啦 XD ...

    51CTO下载-DSSM335V4.part1

    Note: If the Demo does not start, be sure that the Demo Configuration Editor is not running and there are not any other demos running. If you copied the demo package directory, make sure the DSSM_335...

    A restriction of the fourier transform

    the restriction theorem

    ip_restriction:创建IP白名单的简单方法

    安装将此行添加到您的应用程序的Gemfile中: gem 'ip_restriction' 然后执行: $ bundle或将其自己安装为: $ gem install ip_restrictionRuby on Rails的用法使用IP列表创建yml文件。 IPV4或IPV6 ips : - 10.20....

    node-vehicle-restriction:计算车辆限制规则

    节点车辆限制 计算车辆限制规则安装$ npm install vehicle-restriction特征 正常化的板弦 测试车辆的车牌是否受到限制 显示哪个车牌号码受到限制 支持更多城市例子const vr = require ( 'vehicle-restriction' ) ;...

    alcohol_restriction:确定购买酒精的年龄和适当的限制

    酒精限制 确定年龄和购买酒的适当限制。

    Universal-USB-Installer

    running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). ...

    php代码时间插件

    in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to ...

    cJSON.rar,包含cJSON.c和cJSON.h文件

    in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit ...

    hpcc-systems-ecl-ml

    the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to ...

    Sortable前端框架

    unwanted touchmove events even when your finger is not moving, resulting in the sort not triggering. This option sets the minimum pointer movement that must occur before the delayed sorting is ...

    oracle json1.5脚本

    in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons ...

    BlueToolInstall

    except where such Software is embedded in a manner not readily accessible to the end user. Licensee acknowledges that any symbols, trademarks, BASLA v1.1 5/29/02 -1- tradenames, and service marks ...

    unity 2018.2.10f1 Shader

    the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to ...

    微信小程序红包抽奖v02版

    "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and ...

Global site tag (gtag.js) - Google Analytics