문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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/

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

another good place to find it would be http://www.findmaven.net

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top