title: NoClassDefFoundError: com.ibm.db2.jcc.DB2Jcc
body: <p>So far here are the things I've checked from the server:</p>
  
  <ul>
  <li>DB2 JDBC Driver - check</li>
  <li>DB2 License (db2jcc_license_cu.jar) included in class path - check</li>
  <li>DB2 db2java.zip included in class path - check</li>
  <li>DB2 db2jcc.jar included in class path - check</li>
  </ul>
  
  <p>Here's the current class path:</p>
  
  <pre><code>CLASSPATH=/home/db2cae/sqllib/java/db2java.zip:/home/db2cae/sqllib/java/sqlj.zip:/home/db2cae/sqllib/function:/home/db2cae/sqllib/java/db2jcc_license_cu.jar:/home/db2cae/sqllib/tools/clpplus.jar:/home/db2cae/sqllib/tools/antlr-3.2.jar:/home/db2cae/sqllib/tools/jline-0.9.93.jar:/home/db2cae/sqllib/java/db2jcc.jar:.
  JAVA_BINDIR=/usr/lib64/jvm/jre/bin
  JAVA_HOME=/usr/lib64/jvm/jre
  JAVA_ROOT=/usr/lib64/jvm/jre
  </code></pre>
  
  <p>The command that was executed was:</p>
  
  <pre><code>java -cp ./db2jcc.jar com.ibm.db2.jcc.DB2Jcc -version
  </code></pre>
  
  <p>However it returned</p>
  
  <p><img src="https://i.stack.imgur.com/cgzg3.jpg" alt="NoClassDefFoundError"> </p>
  
  <p>What could be the possible problem for this?</p>