Search the Jar a Java Class belongs to

There are many useful online resources that allow you to find the JAR a Java Class belongs to such as www.findjar.com.

However from experience, in the Fusion Middleware monster of JARs, it can be difficult finding the JAR a Java Class belongs to, especially when running applications and facing missing class exceptions.

To find the JAR and its location within Oracle Fusion Middleware Home directory, follow the instructions below.

In Windows:

1. Open a command prompt window

2. Navigate to the base folder of all the JARs

3. Enter the following command, replace classname with the Class you are searching for:

forfiles /S /M *.jar /C "cmd /c jar -tvf @file | findstr /C:"classname" && echo @path"
4. The command prompt will retrieve the name and location of all JARs that contain the searched Class.

1 comment:

  1. I would like to appreciate your work for good accuracy and got informative knowledge from here. Please contact us for Oracle Fusion Cloud Training details in our Erptree Training Institute

    ReplyDelete