Solved

searching for unreferenced classes

Posted on 2000-03-10
3
226 Views
Last Modified: 2008-09-25
Are there any tools out there that will search source code in packages for unreferenced classes? We have about 200 classes and I am not convinced that we are actually using all of them. Ideally, I'd like a tool that just spits out the names of all classes that are not referenced in some way by the other classes (minus the main of course).
0
Comment
Question by:fmaritato
3 Comments
 
LVL 2

Accepted Solution

by:
meming earned 15 total points
ID: 2605615
Try JAX from IBM Alphaworks:
http://www.alphaworks.ibm.com/tech/JAX

"JAX, which is written in Java, is a Java application packaging tool that reduces the distribution size of a Java application. This means JAX collects the class files that  comprise a given application and takes out only those elements in the class files  that are not needed to execute the application. The result is a smaller "executable."  With all optimization techiques currently done by JAX, an estimated 30%-50%  reduction of the original application size is feasible. "
0
 
LVL 5

Expert Comment

by:mbormann
ID: 2607427
We have the same problem as we are going through a upgrade but the crux  of the matter is that if there si a Thread called Tracker and it's now useless,but it's still referred to in some code,JAX won't spit it out .
It's static so practically you would have to keep 1 guy assigned to this task as we did.

Result we cut down on 17 unnecessary Threads and 173 classes plus many useless methods , using both JAX and manual stuff.JAX did 55% of the job,though I have never used that.
0
 
LVL 1

Author Comment

by:fmaritato
ID: 2628692
Thanks. JAX is pretty clunky, and I was kinda hoping for a tool that would just analyze my source files and tell me what to take out so I can optimize the actual written code, but this is good for now.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now