Solved

searching for unreferenced classes

Posted on 2000-03-10
3
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

615 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