Page 1 of 1

Access rules

PostPosted: Thu Jul 26, 2012 9:13 am
by jason
I have one last question and I'm pretty sure there's an easy fix, but Googling the problem hasn't seemed to help me. When I try and throw a JaxBException i'm getting a restriction:

Access restriction: The type JAXBException is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar

Did the recent Java package add some restriction to these elements? It occurs for all 4 javax.xml.bind libraries I attempt to import. Perhaps you've encountered this problem already and know a quick solution?


Are you using Eclipse?

Go into "Configure Build Path" > Libraries. Click on JRE System Library, you should see Access rules. What do you have there?

You can add a suitable access rule.