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.

Thanks.
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: 1853
Registered: July 2009
Senior Member
In java 9 javax.annotation.PostConstruct et al are no longer accessible by default.
See, e.g., https://stackoverflow.com/questions/46792354/add-java-9-system-modules-to-compile-in-eclipse

For more background this question - linked from a comment - might be of interest: https://stackoverflow.com/questions/46493613/what-is-the-replacement-for-javax-activation-package-in-java-9
Previous Topic:Package explorer is blank after upgrade to Oxygen.2
Next Topic:What to do when a type collides with a package?
Goto Forum:
  


Current Time: Fri Apr 19 22:15:46 GMT 2024

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

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

Back to the top