grepj searches for a class within jar files.
grepj <class-file-name> <file 1> ... <file n>
class-name is searched in the files provided. At least one file is required for a search.
The format of the class name is like foo.bar.Baz where foo.bar is the package name and Baz is the class name.
The files provided need to be valid jar, war, ear or zip files that can be read. Class files will be searched in nested locations as well. For example jar files in WEB-INF/lib of a war file will be searched. WEB-INF/classes will also be searched.
If the class file exists in the file provided, the file is output.
Operating System | Architecture | |
---|---|---|
Windows | 64 bit | Download |
Windows | 32 bit | Download |
Linux | 64 bit | Download |
Linux | 32 bit | Download |
Mac | 64 bit | Download |
Mac | 32 bit | Download |
- 0 for class-file-name found in any of the files
- 1 for no match found
- 2 for any other errors