<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ketan&#039;s Musings &#187; jar-finder</title>
	<atom:link href="http://ketan.padegaonkar.name/tag/jar-finder/feed" rel="self" type="application/rss+xml" />
	<link>http://ketan.padegaonkar.name</link>
	<description>Where he blogs about his eclipse musings</description>
	<lastBuildDate>Sat, 26 Feb 2011 18:24:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Finding a Class in a ton of jars</title>
		<link>http://ketan.padegaonkar.name/2007/07/26/finding-a-class-in-a-ton-of-jars.html</link>
		<comments>http://ketan.padegaonkar.name/2007/07/26/finding-a-class-in-a-ton-of-jars.html#comments</comments>
		<pubDate>Thu, 26 Jul 2007 03:46:42 +0000</pubDate>
		<dc:creator>Ketan</dc:creator>
				<category><![CDATA[GNU & Linux]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[class-finder]]></category>
		<category><![CDATA[jar-finder]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://ketan.padegaonkar.name/2007/07/26/finding-a-class-in-a-ton-of-jars.html</guid>
		<description><![CDATA[This is how I do it. Create a script I call it findclass in some location on the path. /usr/local/bin is a good place, I prefer $HOME/bin. Remember to chmod this script to 755. #!/bin/bash find -iname "*.jar" &#124; xargs -i unzip -l {} &#124; less In case you are new to less, here&#8217;s how [...]]]></description>
			<content:encoded><![CDATA[<p>This is how I do it. Create a script I call it findclass in some location on the path. /usr/local/bin is a good place, I prefer $HOME/bin. Remember to chmod this script to 755.</p>
<pre>
#!/bin/bash
find -iname "*.jar" | xargs -i unzip -l {} | less
</pre>
<p>In case you are new to less, here&#8217;s how you navigate:<br />
1. To find a particular class say com.xyz.abc.MyClass, you type:
<pre>/com.xyz.abc.MyClass</pre>
<p>2. To find what jar contains this class, you type:
<pre>?Archive:</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Finding+a+Class+in+a+ton+of+jars&amp;link=http://ketan.padegaonkar.name/2007/07/26/finding-a-class-in-a-ton-of-jars.html&amp;notes=This%20is%20how%20I%20do%20it.%20Create%20a%20script%20I%20call%20it%20findclass%20in%20some%20location%20on%20the%20path.%20%2Fusr%2Flocal%2Fbin%20is%20a%20good%20place%2C%20I%20prefer%20%24HOME%2Fbin.%20Remember%20to%20chmod%20this%20script%20to%20755.%0A%0A%0A%23%21%2Fbin%2Fbash%0Afind%20-iname%20%22%2A.jar%22%20%7C%20xargs%20-i%20unzip%20-l%20%7B%7D%20%7C%20less%0A%0A%0AIn%20case%20you%20are%20new%20to%20less%2C%20here%27s%20how%20you%20navigate%3A%0A1.%20&amp;short_link=&amp;shortener=bitly&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Finding+a+Class+in+a+ton+of+jars&amp;link=http://ketan.padegaonkar.name/2007/07/26/finding-a-class-in-a-ton-of-jars.html&amp;notes=This%20is%20how%20I%20do%20it.%20Create%20a%20script%20I%20call%20it%20findclass%20in%20some%20location%20on%20the%20path.%20%2Fusr%2Flocal%2Fbin%20is%20a%20good%20place%2C%20I%20prefer%20%24HOME%2Fbin.%20Remember%20to%20chmod%20this%20script%20to%20755.%0A%0A%0A%23%21%2Fbin%2Fbash%0Afind%20-iname%20%22%2A.jar%22%20%7C%20xargs%20-i%20unzip%20-l%20%7B%7D%20%7C%20less%0A%0A%0AIn%20case%20you%20are%20new%20to%20less%2C%20here%27s%20how%20you%20navigate%3A%0A1.%20&amp;short_link=&amp;shortener=bitly&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Finding+a+Class+in+a+ton+of+jars&amp;link=http://ketan.padegaonkar.name/2007/07/26/finding-a-class-in-a-ton-of-jars.html&amp;notes=This%20is%20how%20I%20do%20it.%20Create%20a%20script%20I%20call%20it%20findclass%20in%20some%20location%20on%20the%20path.%20%2Fusr%2Flocal%2Fbin%20is%20a%20good%20place%2C%20I%20prefer%20%24HOME%2Fbin.%20Remember%20to%20chmod%20this%20script%20to%20755.%0A%0A%0A%23%21%2Fbin%2Fbash%0Afind%20-iname%20%22%2A.jar%22%20%7C%20xargs%20-i%20unzip%20-l%20%7B%7D%20%7C%20less%0A%0A%0AIn%20case%20you%20are%20new%20to%20less%2C%20here%27s%20how%20you%20navigate%3A%0A1.%20&amp;short_link=&amp;shortener=bitly&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=RT+%40ketanpkr+%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Finding+a+Class+in+a+ton+of+jars&amp;link=http://ketan.padegaonkar.name/2007/07/26/finding-a-class-in-a-ton-of-jars.html&amp;notes=This%20is%20how%20I%20do%20it.%20Create%20a%20script%20I%20call%20it%20findclass%20in%20some%20location%20on%20the%20path.%20%2Fusr%2Flocal%2Fbin%20is%20a%20good%20place%2C%20I%20prefer%20%24HOME%2Fbin.%20Remember%20to%20chmod%20this%20script%20to%20755.%0A%0A%0A%23%21%2Fbin%2Fbash%0Afind%20-iname%20%22%2A.jar%22%20%7C%20xargs%20-i%20unzip%20-l%20%7B%7D%20%7C%20less%0A%0A%0AIn%20case%20you%20are%20new%20to%20less%2C%20here%27s%20how%20you%20navigate%3A%0A1.%20&amp;short_link=&amp;shortener=bitly&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-dzone">
			<a href="http://www.shareaholic.com/api/share/?title=Finding+a+Class+in+a+ton+of+jars&amp;link=http://ketan.padegaonkar.name/2007/07/26/finding-a-class-in-a-ton-of-jars.html&amp;notes=This%20is%20how%20I%20do%20it.%20Create%20a%20script%20I%20call%20it%20findclass%20in%20some%20location%20on%20the%20path.%20%2Fusr%2Flocal%2Fbin%20is%20a%20good%20place%2C%20I%20prefer%20%24HOME%2Fbin.%20Remember%20to%20chmod%20this%20script%20to%20755.%0A%0A%0A%23%21%2Fbin%2Fbash%0Afind%20-iname%20%22%2A.jar%22%20%7C%20xargs%20-i%20unzip%20-l%20%7B%7D%20%7C%20less%0A%0A%0AIn%20case%20you%20are%20new%20to%20less%2C%20here%27s%20how%20you%20navigate%3A%0A1.%20&amp;short_link=&amp;shortener=bitly&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=102&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ketan.padegaonkar.name/2007/07/26/finding-a-class-in-a-ton-of-jars.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

