Home Forum

SmartProducts Community

Who's Online

We have 5 guests online


Statistics

Visits today:3
Visits yesterday:76
Visits in this month:1506
Visits in this year:3147
Visits total:17993
Impressions total:144146
Bots today:13
Welcome, Guest
Username Password: Remember me

Tool for finding classes and/or resolve conflicts
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Tool for finding classes and/or resolve conflicts

Tool for finding classes and/or resolve conflicts 6 months, 3 weeks ago #15

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

JFileSearch1.png


JFileSearch2.png


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.
Last Edit: 6 months ago by Marcus Ständer. Reason: Highlighted webstart
  • Page:
  • 1
Time to create page: 0.28 seconds