Archive for the ‘ Eclipse ’ Category


Solve the annoyance with Eclipse Access Restriction

Sometimes, you may encounter a problem like this:
is not accessible due to restriction on required library /usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/rt.jar.

After several times checking, there is no reason to properly explain and your program gets to stuck since no compilation is allowed when error existed.

One way to work around this issue is by resetting the configuration in the Eclipse project properties. Right click the project name, get into its properties and the Java compiler tab. There is an Errors/Warnings line listing there, select it, and update the Forbidden Reference (access rules) into Warning in the Deprecated and restricted API. Then rebuild the project, and problem solved.

Similar errors can be handled in the same way.

  • Chinese Version

    • Wanna know me more? And you can read Chinese? Feel free to visit my Chinese site, more life records will be found there and wish you enjoying it.
  • Thanks for support

  • twitter

    facebook

    linkedin

    • You are currently browsing the archives for the Eclipse category.

  • Categories