title: Excluding jars from dynamically generated classpaths?
body: <p>I'm launching my java server from a bash script.  The server has "provided" dependencies on 3rd party jars.  However, some of those jars conflict with jars in my app, and need to be excluded from the classpath...</p>
  
  <p>At the moment, I only need to exclude one jar, so this idiom gets me by</p>
  
  <pre><code>EXTERNAL_JARS=$(find "${EXTERNAL_LIB}" -name 'slf4j-log4j12-1.4.3.jar' -prune -o -type f -name '*.jar' -printf ':%p' )
  CLASSPATH=${CLASSPATH}${EXTERNAL_JARS}
  </code></pre>
  
  <p>Is there a better approach to use when the number of external jars is 20-30 and the number of excluded jars is ~ 5 ?</p>