Различия
Здесь показаны различия между двумя версиями данной страницы.
Следующая версия | Предыдущая версия | ||
dev:java:tips:accessrestrict [2012/09/23 20:50] jamis7005 создано |
dev:java:tips:accessrestrict [2012/09/23 20:56] (текущий) jamis7005 [Solution 1 (nice)] |
||
---|---|---|---|
Строка 1: | Строка 1: | ||
====== Access restriction problem in Eclipse====== | ====== Access restriction problem in Eclipse====== | ||
- | [Eclipse]<code>Access restriction: Class is not accessible due to restriction on required library</code> | + | Eclipse error message:\\ |
+ | <html><span style="color:red;font-weight:bold;">Access restriction: Class is not accessible due to restriction on required library</html> | ||
===== Solution 1 (dirty) ===== | ===== Solution 1 (dirty) ===== | ||
Строка 13: | Строка 14: | ||
"Warning" or "Ignore" options will only hide the potential issue in the project, by allowing the project to use any classes ignoring predefined access rules. To completely resolve this issue, analyze the project and located the use of restricted classes and take necessary actions (either remove those references or access rules). | "Warning" or "Ignore" options will only hide the potential issue in the project, by allowing the project to use any classes ignoring predefined access rules. To completely resolve this issue, analyze the project and located the use of restricted classes and take necessary actions (either remove those references or access rules). | ||
- | ===== Solution 1 (nice) ===== | + | ===== Solution 2 (nice) ===== |
- Go to the Build Path settings in the project properties. | - Go to the Build Path settings in the project properties. |