Error message: access restriction: the constructor sunjce () is not accessible due to restriction on required library c: \ Program Files \ Java \ jre7 \ Lib \ ext \ sunjce_provider.jar
Access restriction: The type tasktopicresolver is not accessible due to restrict when performing NC, I copied a nc_demo from someone else and returned an 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_home/modules/UAP/META-INF/lib/uapplatform. Jar
Solution 1:
By default, eclipse sets these access-restricted APIs as error.
Windows-> preferences-> JAVA-> compiler-> errors/warnings->
Deprecated and trstricted API-> forbidden reference (access rules):-> change to warning
Solution 2:
You only need to remove the JRE System Library first in the Project Build path, and then add the library JRE system library. After re-compilation, everything will be normal.(I have used this method only, but I do not like other methods)
Solution 3:
Right-click the project-> project properties-> JAVA builder path-> libraries tag, click access rules in the JRE system library, and add sun/** to accessible. If this option exists, edit.
Solution 4:
Windows-> preferences-> JAVA-> installed jres-> select JDK for use-> edit-> Add external jars
I tried 1, 4 feasibility... I am only mine. I have not studied the specific differences. Who has the research to send a message?