How To Find Missing Class While ClassNotFound Exception Encountered
(Doc ID 1358623.1)
Last updated on MAY 03, 2022
Applies to:Oracle WebLogic Server - Version 9.0 and later
Oracle Containers for J2EE - Version 10.1.2.0.0 and later
Information in this document applies to any platform.
It is common to see the ClassNotFound exception when deploy an application or when run an application, however, the exception java stack trace (see below as example) can only indicate the name of the missing class but will not tell where is the location of the corresponding library such as .jar/.war/.zip for the missing class. That brings inconvenience to resolve the issue.
When the issue occurs in Linux/Unix, one may implement some shell script to search jars to find the missing class, however, that may not be feasible in other platform such as Window, further that will make difficulty to those users without shell script skill.
This note is about to provide a cross platform solution to find the corresponding libraries which contains the missing class, it is simple to use in many environment as long as the java is available in the environment.
In fact, the solution is a java based program, which allows to recursively search an entire given path and its sub-folders for a missing class.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document