Html/Javascript widget

Tuesday 9 February 2016

Common Eclipse errors 1- access to C:\Program Files\Java\jre8\lib\rt.jar is restricted

Eclipse is an open-source integrated development environment (IDE) for developing applications in Java with a highly customisable plug-in system environment. It's about the most basic environments to program in java, but at times you might come across some issues. The most common is when you try to import javax.swing.JFrame. It foten results in an error that reads "access to C:\Program Files\Java\jre8\lib\rt.jar is restricted".  IN order to solve this problem you will need to delete and implement the JRE. Right click the project file, then go to Build Path> Configure Build Path. Next, click on the JRE file, remove on the rightr, click Add Library, then JRE System Library, Next and then click finish. You should now be able to use all of the resources from the javax.swing library which allow for the development of graphical user interface applications.

No comments:

Post a Comment