Eclipse with JSR 250 (annotation) yields "Access Restriction" errors.
- by edstafford
Hi,
Hopefully someone has come across this before. I'm running Spring STS 2.3.0 and when attempting to use the @Resource annotation from javax.annotations.Resource I get "Access restriction: The type Resource is not accessible due to restriction on required library". I'm using the JDK 6u18.
I've tried changing the JDK Compliance to 1.5 and 1.6 and both yield the same error.
Cheers,
-Ed