`

The constructor BASE64Encoder() is not accessible due to restriction on required

    博客分类:
  • FAQ
 
阅读更多
碰到这个问题在网上找了下:
在Eclipse中编写Java代码时,用到了BASE64Decoder,import sun.misc.BASE64Decoder;可是Eclipse提示:
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 not accessible due to restriction on required library C:\Program files\java\jre6\lib\rt.jar

搞不懂是为什么,只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。但是我仍然很疑惑是为什么。。。

1. Open project properties.
2. Select Java Build Path node.
3. Select Libraries tab.
4. Remove JRE System Library.
5. Add Library JRE System Library.

真的是非常神奇。
分享到:
评论

相关推荐

    sun.misc.base64decoder.jar下载

    sun.misc.BASE64Encoder找不到jar包的解决方法?... Access restriction : The constructor BASE64Decoder() is not accessible due to restriction on required library C:\Program files\java\jre6\lib\rt.jar

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - FIX: The TFlexPanel.FindControlAtPoint method maked virtual to realize RealTime-capability when on mouse cursor moving the flex-object search not occurs. - FIX: After deleting the selected points ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    On modern processors smaller code usually runs faster due to better use of the instruction cache. Decision: A decent rule of thumb is to not inline a function if it is more than 10 lines long. ...

    微信小程序百度地图js

    微信小程序百度地图js,可嵌套在微信小程序里面进行百度地图开发

    Java邮件开发Fundamentals of the JavaMail API

    POP is the mechanism most people on the Internet use to get their mail. It defines support for a single mailbox for each user. That is all it does, and that is also the source of a lot of confusion...

    A Guide to MATLAB Object-Oriented Programming

    Assuming an intermediate level of MATLAB programming knowledge, the book not only concentrates on MATLAB coding techniques but also discusses topics critical to general software development....

    servlet2.4doc

    The doFilter method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain. doGet...

    JSP Simple Examples

    In this program we are going to know how the server determines whether the password entered by the user is correct or not. This whole process is controlled on the server side. Multiple forms in jsp ...

    面向对象设计

    base( ){cout”the constructor of base”; clone( );} virtual void clone( ){cout”the clone function of base”;} }; class derive:public base{ public: derive( ){cout”the constructor of derive”;} ...

    设计代码文档

    base( ){cout”the constructor of base”; clone( );} virtual void clone( ){cout”the clone function of base”;} }; class derive:public base{ public: derive( ){cout”the constructor of derive”;} ...

    46家公司软件工程师笔试题

    A class B network on the internet has a subnet mask of 255.255.240.0, what is the maximum number of hosts per subnet . a. 240 b. 255 c. 4094 d. 65534 2. What is the difference: between o(log n) and ...

    ape_a0452d物理引擎

    The APEngine.container property is now of type DisplayObjectContainer, not Sprite. Renamed 'rotation' to 'radian' in RectangleParticle to be consistent with SpringConstraint. Thanks to Robert Brisita ...

    Android代码-Watchface-Constructor

    This is simple watchface constructor demo. It offers customization of the following features: Background colors and images Watch hands Placement of watch hands Ambient mode How it works? Pull ...

    echarts_bmap.js

    echarts引入bmap必须的扩展插件

    数据结构作业Hash表

    Goals: This assignment is designed to reinforce the student's understanding of the use of hash tables as searchable containers. Outcomes: Students successfully completing this assignment would master...

    Inside The C++ Object Model 英文版

    Inside the C++ Object Model focuses on the underlying mechanisms that support object-oriented programming within C++: constructor semantics, temporary generation, support for encapsulation, ...

    netWindows_0.3.0_pre2

    21:57 russcoon Exp $_______________________________________________________________________________0.3.0 pre2OVERVIEW: netWindows 0.3 pre2 is fairly close to a release canidate for the 0.3 final ...

    three.js加载obj模型

    简单的加载obj模型,可以直接下载直接使用,很是方便,只需将你的obj,mtl导入即可,对于three.js的学习者很有用

    ssd exercise1

    Class Advertisement models the advertisement of an item for sale. This class contains private data members to store a unique ... Information corresponding to the number private data member is not read

    AJAX and PHP.pdf

    machine already has the required software, you still need to read the final part of appendix, where you are instructed about creating a database that is used for the examples in this book. Who this ...

Global site tag (gtag.js) - Google Analytics