title: How to exclude a specific jar from java classpath
body: <p>I am using this below structure to set classpath in my java application.
  How can I exclude a specific jar that is loading in runtime.</p>
  
  <pre><code>#!/bin/sh
  export JAVA_HOME=/usr/local/java
  PATH=/usr/local/java/bin:${PATH}
  cd /home/ala/DevDaily/Musubi
  
  THE_CLASSPATH=
  for i in `ls ./lib/*.jar`
  do
    THE_CLASSPATH=${THE_CLASSPATH}:${i}
  done
  </code></pre>