When in Eclipse you have an error like: “Access restriction: The constructor AppletAudioClip(URL) is not accessible due to restriction on required library C:\Programmi\Java\jdk1.6.0_24\jre\lib\rt.jar” You simply need to follow these steps to avoid compilation error:
Click on the Properties of your project Go to Java Compiler–>Errors/Warnings search for “Deprecated and Restricted API” and set to warning “Forbidden reference (access rules)” item.
That’s it.
Related articles
- Eclipse Announces Full Support for Java 7 (prweb.com)
- When Maven Crashes Eclipse (pdark.de)
- Eclipse and Subversion: Project Source Control From Within the IDE (devx.com)
Filed under: Java, Programming Tagged: | Autocomplete, Eclipse, Integrated development environment, Java, Languages, Programming