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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content