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?
Asked
Active
Viewed 1,163 times
2
-
This strongly depend on what kind of project you are working on. maven is vastly different from non-maven projects. – Thorbjørn Ravn Andersen Apr 28 '14 at 16:30
4 Answers
5
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:
it helped me lot of times.

zeppaman
- 844
- 8
- 23
4
If you are using eclipse:
Ctrl + Shift + T
Helping me to find quickly which class belongs to which jar. However, these jars have to be in workspace.
Otherwise use @zeppaman seggestion: http://www.findjar.com/

Vassilis Blazos
- 1,560
- 1
- 14
- 20
3
it was included in xercesImpl-2.9.1.jar, you can try http://www.findmaven.net , it can help you find the jar and the dependency tree of the jar

Jimmy Cheng
- 33
- 5