2

How can I determine which apt package I should install to have a certain jar file?

BTW: I'm actually looking to solve

XML parser factory has not been configured correctly: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found

but I wish to find a general solution.

Let's do it by example:

  • I miss org.apache.xerces.jaxp.SAXParserFactoryImpl
  • so I can use http://search.maven.com and determin that I need xerces-1.4.4.jar
  • but in which ubuntu package is that jar located?
5
  • Where is the jar file? Apr 11, 2014 at 12:46
  • Try dpkg -S /path/filename.jar Apr 11, 2014 at 12:46
  • @AvinashRaj the jar isn't there yet ... I wish to find the right package to install
    – lrkwz
    Apr 11, 2014 at 12:48
  • Unclear, please be specific. Apr 11, 2014 at 12:50
  • apt-file search /name/of/the/file?
    – Rmano
    Apr 11, 2014 at 12:51

1 Answer 1

2

Try to install libxerces2-java:

sudo apt-get install libxerces2-java

To actually find the right package, try using the powerful http://packages.ubuntu.com using the query on package content:

http://packages.ubuntu.com/search?searchon=contents&keywords=xerces+jar&mode=filename&suite=saucy&arch=any

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .