Savvion Help

Do you need help on Savvion?
E-mail us on for any information, help, how-to or questions and we will contact you and reply to your question as soon as possible.

Wednesday, August 10, 2011

Linux command to search a file from jar

Do you anytime required to find a jar file which contain a particular class file? Well for one of my requirement in a Savvion application, I needed to include the jar in my ejb classpath for which I wanted to find a jar file from Savvion libraries folder which contained a specific Java Class file.

Below is an easy way to find any file from list of all the jar files from a particular folder.

Go to the jar libraries folder which contain the jar files and type below command:

grep YourClassFile YourJar
The above command will display YourJar file if the class YourClassFile is available in the jar.

You can also use below command which will search the class file from all the jar in the current folder and sub folders.

grep -r YourClassFile *

1 comment:

Anonymous said...

hello owner discovered your website via yahoo but it was hard to find and I see you could have more visitors because there are not so many comments yet. I have found site which offer to dramatically increase traffic to your website they claim they managed to get close to 4000 visitors/day using their services you could also get lot more targeted traffic from search engines as you have now. I used their services and got significantly more visitors to my blog. Hope this helps :) They offer most cost effective services to increase website traffic at this website