Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[e4-dev] "Access restriction" for javax.annotation

I would like to do some more testing on e4, but I get a compile error with the code from e4 HEAD. I have checked out the code as described on http://wiki.eclipse.org/E4/ProjectSetFiles.

Eclipse gives me an error for some imports:

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

Access restriction: The type PostConstruct is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0_20\jre\lib\rt.jar

Shouldn't Eclipse pick up the code from the "java.annotation" plugin contained in the 4.0 SDK? Do I have to use some special target platform settings or so?

(Note: I am currently running on Eclipse 3.5.)

Stefan




Back to the top