javaclasspathmethod-missing

How to find jar cointainign a given class


I got an error for missing class "org.apache.xerces.impl.XMLDocumentFragmentScannerImpl". It is a new project setup, whitout employ maven or other tool to manage dependencies. I think to forgot to include some jar, how to find what jar own XMLDocumentFragmentScannerImpl?


Solution

  • Because same class implementation could be packaged differently, you could find it on more jar. You have also to ensure that each class was included only once time, to prevent "no class found error".

    A good service to locate parent jar for a given class:

    http://www.findjar.com/

    it helped me lot of times.