Search and Find a JAR

Search and Find a JAR
G.Morreale

clicca qui per la versione in italiano
Introduction:

Sometimes when you download library, or simply classes the  provided package is not inclusive of all necessary dependencies. 
Therefore the need for this and in other cases, find jar containing a given class. 

The solution:

I found a good online service that can resolve the problem of finding, given the name of a class, the name of the jar file that contains this class in it. 

The service is available from the site www.findjar.com 

It then helps to solve the exceptions: 

  • NoClassDefFoundError
  • ClassNotFoundException

Example 

For example, by typing the name of the class XMLSerializer 

You get the following output: 

[CLASS] org.kxml2.io.K XmlSerializer
[CLASS] org.xmlpull.v1. XmlSerializer
[CLASS] org.kxml2.wap.Wb xmlSerializer
[CLASS] net.sf.json.xml. XMLSerializer
[CLASS] com.idoox.util.xml. XMLSerializer
[CLASS] oracle.xml.binxml.Bin XMLSerializer
[CLASS] org.apache.ws.jaxme.JM XmlSerializer
[CLASS] org.vraptor.remote.xml. XMLSerializer

In this case, not finding a jar containing the class XMLSerializer, the system proposes the complete package name of classes similar to INPUT typed. 

If you click on org.kxml2.io.K XmlSerializer or type it as input, since, to name a complete package and the correct output proposes the names of the JARs that contain the specific class: 


Containing JAR 
files:
kxml2.jar 
kxml2-2.1.8.jar


Conclusion 

A short article to link a simple but sometimes very useful website. 
If you want to point out interesting services and leave a comment to this post. 

1 comment:

pbsl said...

you have nice site. thanks for sharing this site. various kinds of ebooks are available here

http://feboook.blogspot.com