Original Post
I'm working with a massive Java project (18+ MB of source code), in which about 40% of the classes are deprecated or legacy, and not used at any time during runtime. Problem is, they're mixed all up in the rest of the classes. Is there any way to get the Java VM to dump a list, preferably just newline-delimited, of all classes instantiated, and maybe what classpath root element that class was selected from? If I can get a list of used classes, then I can create the list of unused ones. Any suggestions?