tag:blogger.com,1999:blog-6562129188834589284.post2149979000666832042..comments2023-07-07T15:55:20.158+02:00Comments on Java Peanuts: How-to find a class in a JAR directory using shell scriptingAmicofragilehttp://www.blogger.com/profile/03798843481140367818noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6562129188834589284.post-30511352117665170482012-04-17T03:27:27.058+02:002012-04-17T03:27:27.058+02:00https://gist.github.com/2402770https://gist.github.com/2402770authorhttps://www.blogger.com/profile/02713399383747357064noreply@blogger.comtag:blogger.com,1999:blog-6562129188834589284.post-54196459095904811042012-04-16T14:03:54.576+02:002012-04-16T14:03:54.576+02:00I do love bash and often say that bash is my favor...I do love bash and often say that bash is my favorite language to program in. This task does not require a bash script. All that is needed is:<br /><br />$ jar -tf someJar.jar | grep SomeClass<br /><br />And another tip: as jar files are zip archives, you can also use the zipinfo command on linux to get the same done.Saqib Rasulhttps://www.blogger.com/profile/05350208980774550978noreply@blogger.comtag:blogger.com,1999:blog-6562129188834589284.post-9749681490724307892012-04-15T21:21:18.685+02:002012-04-15T21:21:18.685+02:00First i wrote a similar script, then i found this ...First i wrote a similar script, then i found this tool:<br />http://www.inetfeedback.com/jarscan/lalyoshttps://www.blogger.com/profile/01871323591816288458noreply@blogger.comtag:blogger.com,1999:blog-6562129188834589284.post-35794104657769645422012-04-14T19:44:54.393+02:002012-04-14T19:44:54.393+02:00I will find this useful. Is there a way to save t...I will find this useful. Is there a way to save the jar content info to a flat file and then index it? I only occassionally get new jars and then a routine could check on the new jars to update the index. I thought about creating a database but what we really have is an indexed set of jars.Ivank2139https://www.blogger.com/profile/09983802971418134064noreply@blogger.com