Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » javax.annotation.PostConstruct cannot be resolved(I am creating an eclipse RCP plugin. In default java class SamplePart created by eclipse, The @PostConstruct cannot be resolved )
javax.annotation.PostConstruct cannot be resolved [message #1783433] Tue, 13 March 2018 06:33 Go to next message
Nikhil Shinde is currently offline Nikhil ShindeFriend
Messages: 1
Registered: March 2018
Junior Member
I am using JavaSE-9 version. It shows error that @PostConstruct cannot be resolved. I also tried changing build environments, but failed to resolve these error. Any help to resolve this issue will be helpful.

Re: javax.annotation.PostConstruct cannot be resolved [message #1783482 is a reply to message #1783433] Tue, 13 March 2018 14:22 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1651
Registered: July 2009
Senior Member
In java 9 javax.annotation.PostConstruct et al are no longer accessible by default.
See, e.g.,

For more background this question - linked from a comment - might be of interest:
Previous Topic:'Problem Occurred' when suggestions come up
Next Topic:What to do when a type collides with a package?
Goto Forum:

Current Time: Tue Nov 20 06:14:45 GMT 2018

Powered by FUDForum. Page generated in 0.23868 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top