DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Arm64 Is No Longer the Edge Case
  • Building Internal Developer Platforms on Kubernetes: The Abstraction Problem Nobody Warns You About
  • Agentic AI in 2026: How Autonomous AI Agents Are Replacing Manual Dev Work
  • The Hidden Cost of AI-Generated Frontend Code

Trending

  • Microsoft Fabric Throttling: Diagnose Before You Scale
  • Catching Query Regressions Before Your Users Do
  • Why Your Test Automation Is Always Behind the Code And the Architecture That Fixes It
  • How to Contain Partial Failures in Distributed Systems

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

JAR Searcher Developer Tool

Often, Java Developers — Especially Those Working on Large Java EE Code — Realize that they are Facing Multiple Classpath Issues.

By 
Sumith Puri
·
Feb. 17, 21 · Code Snippet
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
4.3K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in
As a Java/J2EE developer, I know that the most commonly faced issue in development, which has also been reported as the primary reason for developers losing hair — missing classpath files or not being able to trace a JAR which contains the file — when you know you have all JARs that could possibly exist in this world on your local file system.

Just wrote this simple tool, JarSearcher v1.0, which accepts the name of the class file you are looking for and returns all the JARs on your system which contain this file. Also, for Windows developers, I have added a .bat file (Unix folks, kindly replicate .sh) which takes the following form for execution:

js [class-name] [start-in] -c
 
[class-name] — The name of the class file to search (without .class)
[start-in] — The directory in which to start looking for the files.
-c — This switch will toggle display of processing information.

Or you can directly invoke the program from the bundled JAR file:
 
java -jar jar-searcher.jar [class-name] [start-in] -c


I have included the source, feel free to modify it as per your convenience.
 
JAR (file format) dev

Published at DZone with permission of Sumith Puri. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Arm64 Is No Longer the Edge Case
  • Building Internal Developer Platforms on Kubernetes: The Abstraction Problem Nobody Warns You About
  • Agentic AI in 2026: How Autonomous AI Agents Are Replacing Manual Dev Work
  • The Hidden Cost of AI-Generated Frontend Code

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook