Hi Oleg,

Correct, javax.annotation is available up to Java 10 (and even using
Java 10, the javax.annotation package has been splitted).

When using Java 11, you have to explicitly install either jsr305 or
javax.annotation jar files (it could be as private package of your
bundle, or ext lib).

Regards
JB

On 01/10/2018 17:14, Oleg Cohen wrote:
> Greetings,
> 
> I am trying to run my Karaf application under JDK 11. I am getting the 
> following exception:
> 
> Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct 
> cannot be found by org.ops4j.pax.web.pax-web-jsp_7.2.3
> 
> It appears that the jigsaw module providing this package is not available in 
> JDK 11. The suggestion is to use a dependency.
> 
> Wondering if anybody ran into this and what a solution/workaround might be.
> 
> Thank you!
> Oleg 
> 

-- 
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to