Eclipse Compilation error: [function/type] is not accessible due to restriction on required library … rt.jar

Problem : Eclipse gives the error – “[function/type] is not accessible due to restriction on required library … rt.jar” when building a project. Reason: Project¬† classpath (in the build path) is refers to JRE in place of the JDK in which the Project is configured to work with. Fix:¬† Go to Java Build Path > […]

Continue reading →