title: Unable to compile using additional library/jar file, javac classpath
body: <p>I am trying to compile code with javac using the ojdbc6.jar from oracle.</p>
  
  <p>I have my source in 'src' my .class in 'bin' and my 'jar' in includes.</p>
  
  <p>my current javac command is:</p>
  
  <pre><code>javac -cp ".;./includes/ojdbc6.jar" src/*.java -d bin
  </code></pre>
  
  <p>this worked until I imported the driver in one of my source files. Now I get:</p>
  
  <pre><code>javac -cp ".;./includes/ojdbc6.jar" src/*.java -d bin
  src/OracleSingleton.java:1: package oracle.jdbc.driver does not exist
  import oracle.jdbc.driver.OracleDriver;
  </code></pre>
  
  <p>I am sure the problem is with my classpath, any idea how to fix this. I have manually checked to see whether the file is there and it is.</p>
  
  <p>also seeing as I haven't got this far I might as well preempt the next question, do I have to point to this jar when running the program too? if so how.</p>
  
  <p>Many thanks</p>