Find Java class or text file in jar files using JarScan

Probably we all face ClassNotFoundException and we want to know where is that following class is missing with in our jars.  You will search hundreds of jar files to find that specific class.  jarscan is helpful tool or utility to look over your required class with in any archive.  jarscan searches recursively all archives in the current directory and all subdirectories for certian entry. 

To download this tool please click here Download jarscan.jar 

To display the help message type:
  java -jar jarscan.jar -help OR java -jar jarscan.jar

  D:\Softwares\Utilites>java -jar jarscan.jar -help

written by Geoff Yaworski
Version 2.0

Usage: java -jar jarscan.jar [-help | /?]
                    [-dir directory name]
                    <-files | -class | -package>
                    <search string 1> [search string 2]
                    [search string n]

  -help or /?           Displays this message.

  -dir                  The directory to start searching
                        from default is "."

  -zip                  Also search Zip files

  -showProgress         Show a running count of files read in

  -files or -class      Search for a file or Java class
                        contained in some library.
                        i.e. HttpServlet

  -package              Search for a Java package
                        contained in some library.
                        i.e. javax.servlet.http

  search string         The file or package to
                        search for.
                        i.e. see examples above
  To find the class ArrayList starting from the root of your c: drive type:
  java -jar jarscan.jar -dir c:\ -class ArrayList  

  •   How to search .class files from mulitple jars.
  •   How to search text file from java archive file.


  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training in India . Nowadays Java has tons of job opportunities on various vertical industry.

  2. HI! Also you can find another download. Here I found how open jar file immediately, blooming instructions I did it without problems. Take a note, this advice.