Classpath Hell - Can IntelliJ Help?

I'm in classpath hell. Many duplicated packages spread throughout too many jar files from too many internal "third parties."

When I'm debugging is there any way for IntelliJ to tell me which classes are currently loaded? Can it tell me where they were loaded from?

Thanks,
Dan

2 comments
Comment actions Permalink

i can only suggest a roundabout way:

1. Stop at a break point while in debugging mode.
2. Bring up the Expression Evaluator
3. evaluate .class 4. right-click on any declared field of the class in question and select "Jump to Source" 5. Select View->]]>Select In...

0
Comment actions Permalink

Dan Wilks wrote:

When I'm debugging is there any way for IntelliJ to tell me which
classes are currently loaded? Can it tell me where they were loaded
from?


One solution might be simply to run "java -verbose:class ..." to get a
message each time a class is loaded into the virtual machine (add
"-verbose:class" to the VM arguments in the run/debug configuration).
Then you can just grep through the output to find classes.

0

Please sign in to leave a comment.