Error message :
Access restriction: The type Name is not accessible due to
restriction on required library C:\Program
Files\Java\jdk1.5.0_16\jre\lib\rt.jar
- Go to the project properties.
- Select Build Path settings
- Remove the JRE System Library
- Add it back; Select "Add Library" and select the JRE System Library. The default worked for me.
Another Solution :
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings
-> Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
No comments:
Post a Comment