title: Adding a library to Java CLASSPATH in Ubuntu
body: <p>I am not sure if my question is more related about Ubuntu or Java, so pardon me!</p>
  
  <p>I am trying to compile a java program but I get the following error:</p>
  
  <pre><code>package javax.comm does not exist
  </code></pre>
  
  <p>I have downloaded the required package <code>comm.jar</code> but I do not know how/where should I install/copy this file.</p>
  
  <p>I read somewhere that this should be in <code>CLASSPATH</code>  folder but I dont have this folder.</p>
  
  <p>This is what I get for <code>java -version</code> I guess this means I have already installed Java in my system:</p>
  
  <pre><code>java version "1.6.0_24"
  OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
  OpenJDK Server VM (build 20.0-b12, mixed mode)
  </code></pre>
  
  <p>I also have these folders in <code>/usr/lib/jvm/</code> :</p>
  
  <pre><code>default-java             java-1.7.0-openjdk-i386  java-6-openjdk-i386
  java-1.6.0-openjdk       java-6-openjdk           java-7-openjdk-common
  java-1.6.0-openjdk-i386  java-6-openjdk-common    java-7-openjdk-i386
  </code></pre>