Codeready studio tools fail on Java 11 with java.lang.NoClassDefFoundError

Solution Verified - Updated -

Issue

  • Code completion fails:

    java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
        at org.eclipse.recommenders.internal.rcp.RcpModule$Listener$1.afterInjection(RcpModule.java:278)
    

Environment

  • Red Hat CodeReady Studio (CodeReady Studio) 12
  • Java/JDK (Java Development Kit) 11
  • Camel development for Fuse
  • Eclipse Recommenders

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In