Jan 17th, 2008, 05:20 AM
I am looking at using annotations in Spring 2.5 and I am getting java.lang.NoClassDefFoundError: javax.annotation.PostConstruct when I try and run unit tests with @Autowired annotations.
I am using the 1.5 JDK that comes with IBM's RAD 7, i.e. a Websphere 6.1 JDK/server runtime in my classpath.
Anyone know where I can find that class ?
Jan 17th, 2008, 05:27 AM
If not using 1.6 JRE, you need an additional JAR file (common-annotations.jar)
Jan 17th, 2008, 05:53 AM
Ah ha, thank you Baron, much appreciated.
Originally Posted by baronludwig