Reality-Loop

Eclipse on OSX Quick-Tip: Access Restriction Error

April 28, 2010 | 0 Minute Read
This post was originally posted on my old blog.

I have repeatedly come across this problem with Maven, Eclipse and e2eclipse on OSX:

After importing the Maven project into eclipse, I am getting a lot of the following errors:
Access restriction: The type Resource is not accessible due to restriction on required library /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar

Screen shot 2010-04-10 at 11.58.18 PM.png


The solution is the following:
  1. Go to Project->Properties->Java Build Path
  2. Select the JRE System Library -> click Edit
  3. Select Workspace default JRE:
Screen shot 2010-04-10 at 11.59.42 PM.png


http://www.google.com/s2/favicons?domain=twitter.com follow me on twitter, I need some friends :-)