Link to home
Start Free TrialLog in
Avatar of cofactor
cofactor

asked on

How to remove unnecessary JAR files ?

my web application  is Struts 2 based and also consumer of  an axis 2 webservice.

There are unnecessary JAR files crowded  in my  my web application lib folder.  

I want to remove  unnecessary JAR files to clean up  the system. I am not sure which JAR files to drop.  I need assistance on this.



Please see the JAR file list  in text file attached.
listofjarfiles.txt
Avatar of dpearson
dpearson

There are tools that can help you determine which Jars are actually in use, such as Tattletale:
http://www.jboss.org/tattletale/

You should be a bit careful when removing jars that appear to not be in use - as it is possible for code to be loaded dynamically (e.g. using reflection to construct instances) and these tools may not be able to see that sort of usage.

But if you run the tool, take out the apparently unused jars and then do a solid test pass that should be OK.

Doug
Avatar of cofactor

ASKER

I  have checked the site.  I don't understand how to use this tool.

I have the LIB directory where all JAR's  are there.

How do I use the tool from here ?  is there any command to fire ?
What I found out there
You need to run following command at command prompt.
java -Xmx512m  -jar tattletale-1.1.2.Final.jar app output
where app directory has jars and output is directory.
But it is not working on my machine. You can try.
This  runs fine . I  have run the command. I  got a  report file .  name of the file is index.html   in the output directory.

I attach the main  report.zip  file here. Please have a look at it.  


by looking at this report, can you please suggest what actions I should take to clean up my system ?
report.zip
That "report.zip" file only contains the main index file to all the detailed reports. There is nothing of use in this report alone. You would need to zip up all the subdirectories of that "report" directory too.
size is big  to upload.  
can you please suggest any steps to look at ?
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial