Ubuntu: Which package provides a given jar?


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?


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:


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »