`

Access restriction: The type * is not accessible due to restrict报错问题(转载的,可以使用)

    博客分类:
  • java
 
阅读更多

做NC的时候从别人那拷了个NC_DEMO结果我这报错他那没报错 
import nc.bs.wfengine.engine.ext.TaskTopicResolver;  

报错信息:Access restriction: The type TaskTopicResolver is not accessible due to restriction on required library NC_DEMO/NC_HOME/modules/uap/META-INF/lib/uapplatform.jar 

解决方案1: 

Eclipse 默认把这些受访问限制的API设成了ERROR。 
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> 
Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning 

解决方案2: 
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。 

解决方案3: 

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

解决方案4: 

Windows -> Preferences -> Java -> Installed JREs -> 选择用的JDK -> Edit -> Add External JARs 

我用的是4,解决的。

分享到:
评论

相关推荐

    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。只要...

    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...

    BZT52C18S-7-F_datasheet.eeworld.com.cn.pdf

    - **No Purposefully Added Lead:** The diode does not contain any intentionally added lead, making it compliant with RoHS regulations. #### Mechanical Data The mechanical data provides dimensions and ...

    高考英语3500单词第41讲(单词速记与拓展).pdf

    - **restrict**:动词,限制;约束;限定 #### 4. result - **词性**:名词/动词 - **意义**: - **n.** 结果,效果 - **v.** 起因,由于,以...为结果,导致 - **构词解析**:`re-`(向后, 返回) + `sult`(跳) ...

    计算机英语

    - **Restriction/Limitation/Confinement/Restraint**:这些词表示对行动、言论等方面的限制或约束。 12. **罪恶与道德**: - **Vice/Sin/Wick/Evil**:这些词涉及到道德层面的问题,指不道德的行为或品质。 13....

    base64转换遇到问题解决方法

    1. Access restriction:在Eclipse中编写Java代码时,使用了BASE64Decoder,但Eclipse提示:Access restriction : The type BASE64Decoder is not accessible due to restriction on required library C:\Program ...

    eclispe错误

    在错误信息中,我们看到 "Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar",这表明你尝试访问的 `JPEGCodec` 类受到了...

    Infineon-BTS7008-2EPA-DS-v01_12-EN.pdf

    The BTS7008-2EPA is designed to provide comprehensive protection and diagnostic features, making it ideal for applications requiring high reliability and performance. Its integration into SMART7 ...

    Eclipse中设置jar的访问受限设置

    例如,当尝试导入一个项目时,可能会出现以下错误提示:“Access restriction: The type And is not accessible due to restriction on required library C:\Program Files (x86)\Java\jdk1.5.0_09\jre\lib\rt.jar”...

    Heritrix Eclipse下环境配置

    - 如果出现类似`Access restriction: The type FileURLConnection is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar`的错误,可以通过以下步骤解决: - 右键点击...

    Eclipse中引入com.sun.image.codec.jpeg包报错的完美解决办法

    但是,有时引入这两个包时会报出错误:`Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:/Java/jre1.6.0_07/lib/rt.jar`。 解决方法一:修改全局属性 ...

    http403常见问题总结

    - **403.10 - Forbidden: Web server is configured to deny Execute access**:禁止:Web 服务器配置为拒绝执行访问。 - **403.11 - Forbidden: Password has been changed**:禁止:密码已被更改。 - **403.12 - ...

    Outlook Express 错误代码表

    - **解决方法**:联系您的邮件提供商,询问是否可以解除转发限制。 9. **553 From , message blocked** - **含义**:来自特定地址的消息被阻止。 - **解决方法**:确认发件人地址是否正确,或者联系邮件服务提供...

    primer5.0的使用

    ### Primer5.0 使用详解 #### 一、简介与新版更新 **Primer5.0** 是由 **Premier Biosoft International** 开发的一款用于分子生物学研究中的序列分析软件,适用于 Windows 和 Power Macintosh 平台。该软件主要...

    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 ``` **解决方案:** 1. **调整Eclipse配置**:Eclipse默认将这些受...

    常用生物软件.pdf

    - **RESTRICTION ANALYSIS**:分析限制酶消化反应。 - **Sequencher**:装配DNA片段,创建连续序列。 3. **序列查看与编辑**: - **ABIView**和**Chromas**:用于ABI格式文件的查看和编辑。 - **Sequence ...

    protege3.1举例说明

    - **创建限制**:使用“Create restriction”添加限制条件,如allValuesFrom限制,规定某个属性的值必须属于特定类。 7. **实例化**: - **Individuals**:在本体中可以创建个体,代表具体的实例,如创建一个...

    outlook错误代码.pdf

    5. **551 delivery not allowed to non-local recipient** 和 **553 Relay restriction**:这些错误表明SMTP服务器不允许向非本地接收者传递邮件。可能需要更改SMTP设置或使用支持非本地传递的服务器。 6. **553 ...

Global site tag (gtag.js) - Google Analytics