ClassNotFoundException or NoClassDefFoundError occured after migrating between different versions of JDK or different implementations of JDK (Oracle JDK and OpenJDK, etc)
Issue
ClassNotFoundExceptionorNoClassDefFoundErroroccurred after migrating between different versions of JDK or different implementations of JDK (Oracle JDK and OpenJDK, etc).ClassNotFoundExceptionorNoClassDefFoundErroris thrown due to lack of classes in the packages likesun.*andcom.sun.*, which are not standard API.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
