[Go] Resolve access restriction:the type * is not accessible due to restrict

Source: Internet
Author: User

I reported this error when I was using the org.omg under Eclipse.

The first method I used solved the problem.

Transferred from: http://blog.sina.com.cn/s/blog_6714fba70100x6mz.html

Access restriction:the type Tasktopicresolver is not accessible due to restrict do NC the time from someone else that cuff a nc_demo result I gave him that error.
Import Nc.bs.wfengine.engine.ext.TaskTopicResolver;

Error message: Access restriction:the type tasktopicresolver is not accessible due to restriction on required library Nc_demo/nc_ho Me/modules/uap/meta-inf/lib/uapplatform.jar

Solution 1:

By default, Eclipse sets these access-restricted APIs to error.
Errors/warnings, Compiler, Java, Preferences, Windows--
Deprecated and trstricted API, Forbidden Reference (access rules): Change to Warning

Solution 2:
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.

Solution 3:

Engineering Properties->java Builder path->libraries Tag, click on the Access Rules,add sun/** in the JRE System library to accessible, If the item exists, edit it.

Solution 4:

ADD External JARs, select JDK, Preferences, Java----installed JREs, Windows

I tried the next 1, 4 feasible ... I am just my, specific each of the differences did not study, who has research to give a message

[Go] Resolve access restriction:the type * is not accessible due to restrict

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.