Wednesday, April 28, 2010

Eclipse on OSX Quick-Tip: Access Restriction Error

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


  1. Why would I use Eclipse, when there is the IDEA community edition? ;-)

  2. @skleinei I can think of some reasons ...

  3. @Jonas Bandi: What would be the top 3 reasons?

  4. 1. Eclipse being used at most clients I have been working with. I have never been working with a client that was using IDEA.

    2. Plugins

    3. Responsiveness (this is a subjective impression on my MacBook)


Related Posts Plugin for WordPress, Blogger...