Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 117305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:18:54+00:00 2026-05-11T03:18:54+00:00

Is there any tool that lists which and when some classes are effectively used

  • 0

Is there any tool that lists which and when some classes are effectively used by an app or, even-better, automatically trims JAR libraries to only provide classes that are both referenced and used?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:18:55+00:00Added an answer on May 11, 2026 at 3:18 am

    Bear in mind that, as proven by the halting problem, you can’t definitely say that a particular class is or isn’t used. At least on any moderately complex application. That’s because classes aren’t just bound at compile-time but can be loaded:

    • based on XML config (eg Spring);
    • loaded from properties files (eg JDBC driver name);
    • added dynamically with annotations;
    • loaded as a result of external input (eg user input, data from a database or remote procedure call);
    • etc.

    So just looking at source code isn’t enough. That being said, any reasonable IDE will provide you with dependency analysis tools. IntelliJ certainly does.

    What you really need is runtime instrumentation on what your application is doing but even that isn’t guaranteed. After all, a particular code path might come up one in 10 million runs due to a weird combination of inputs so you can’t be guaranteed that you’re covered.

    Tools like this do have some value though. You might want to look at something like Emma. Profilers like Yourkit can give you a code dump that you can do an analysis on too (although that won’t pick up transient objects terribly well).

    Personally I find little value beyond what the IDE will tell you: removing unused JARs. Going more granular than that is just asking for trouble for little to no gain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 91k
  • Answers 91k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer public static string RenderPartialToString(string controlName, object viewData, object model, System.Web.Routing.RequestContext… May 11, 2026 at 6:15 pm
  • Editorial Team
    Editorial Team added an answer The problem with the code you posted is that you're… May 11, 2026 at 6:15 pm
  • Editorial Team
    Editorial Team added an answer The call to a.Equals(b) returns false because a and b… May 11, 2026 at 6:15 pm

Related Questions

I'm involved in creating a web based business solution. The idea is that the
Is there a way to compile a .vbproj or .csproj project file directly, just
I am currently in the process of rewriting an application whereby teachers can plan
I have an interesting problem which I've been looking into and would appreciate some

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.