Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Acces restriction in library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Acces restriction in library



I've seen this type of thing before when I've had my JRE System Library set to one of the "Execution environments", for example JavaSE-1.6. 

Try going into your Project Settings->Java Build Path->JRE System Library, and changing it to the "Workspace default JRE" or an "Alternate JRE".
It appears Eclipse is super-strict if you specify a particular execution environment. Basically, it only allows classes that are guaranteed to be in every JavaSE 1.6 implementation, instead of the stuff that's actually in the Sun/Apple JVMs.

On Sep 22, 2009, at 5:15 PM, Manuel Grau wrote:

Hi all,

I've created a web service client using wsdl2java-maven-plugin in an Eclipse web project. I get this error in eclipse 3.5:

Access restriction: The type XMLStreamReader is not accessible due to restriction on required library /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar

I can compile and package the application with maven (m2eclipse plugin), but I get more than a hundred errors in eclipse and I can't run application in tomcat from the IDE. All the error are related with classes contained in java.xml.stream package, like the one pasted above.

Any ideas?

Thank you.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Acces restriction in library (From: Manuel Grau <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.