Search code examples
javajarclasspath

How to find a duplicate class on the class path?


How do I find a duplicate class on the class path?

Background:

I suspect to have a duplicate class (javax.mail.Session). I found one jar with this class, but I have no idea where the second jar containing the same class is.

I am using Eclipse.


Solution

  • In eclipse press ctrl-shift-T and type Session:

    eclipse screenshot