For the sake of debugging OSGi bundles and other applications, I have written a small tool that lets you search files within folders and jar-files.
This becomes pretty handy if you get
ClassNotFound-like exceptions and you ask yourself: "which library do I need to include or which bundle should be exporting it?". Also if you experience strange behavor, you can try searching for
duplicated files. It might be that someone exports an older version of a class and your OSGi classloader uses the wrong version or that an invalid jar file has been generated that contains the same class file (with the same package name) multiple times. This usually happens if oder jar-files are incorporated with a zipfileset-command into the final jar file.
Please note, that this tool is just meant as a small helper tool, thus, it has never been optimized for performance. It can handle quite a lot of files but probably there is a limit, which is either set by the maximum memory or the maximum lines in a JTable
Features
- Free regexp search pattern.
- (Java) source, class and "other" files can be searched for separately.
- It can also be specified if JAR-files and/or folders (only) shall be searched.
- The list of search locations can be specified. Search is done recursively for all subfolders or JAR-files. Just drag in the files or folders you want.
- The filter option for duplicate files allows finding problems quite easy.
- Results are shown on an own tab with different colors for different types of files. Sorting by columns is possible, searching is done by applying regexp filters.
- Results can be exported to the clipboard.
- Search locations and search pattern are saved in a configuration file named: jfsConfig.ini.
Screenshots
jFilesearch
You can use JAVA webstart from here: jFilesearch.jnlp
Please note that a self-signed certificate has been used.
You can download the JAR-file here:
This attachment is hidden for guests. Please log in or register to see it.