Eclipse with JSR 250 (annotation) yields "Access Restriction" errors.
        Posted  
        
            by edstafford
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by edstafford
        
        
        
        Published on 2010-03-08T22:50:12Z
        Indexed on 
            2010/03/08
            22:51 UTC
        
        
        Read the original article
        Hit count: 254
        
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
© Stack Overflow or respective owner