title: Is there a tool to discover if the same class exists in multiple jars in the classpath?
body: <p>If you have two jars in your classpath that contain different versions of the same class, the classpath order becomes critical.</p>
  
  <p>I am looking for a tool that can detect and flag such potential conflicts in a given classpath or set of folders.</p>
  
  <p>Certainly a script that starts:</p>
  
  <pre><code>classes=`mktemp`
  for i in `find . -name "*.jar"`
  do
      echo "File: $i" &gt; $classes
      jar tf $i &gt; $classes
      ...
  done
  </code></pre>
  
  <p>with some clever sort/uniq/diff/grep/awk later on has potential, but I was wondering if anyone knows of any existing solutions.</p>