title: Java-Eclipse: Package oracle.jdbc.driver does not exist
body: <p>I have Java -version:</p>
  
  <pre><code>java version "1.7.0_25"
  Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
  Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
  </code></pre>
  
  <p>And Oracle <code>11.2</code> with Windows 8</p>
  
  <p>I am trying to run a Dynamic Web Project from Eclipse. All works fine until I try to:</p>
  
  <pre><code>    DriverManager.registerDriver(
          new oracle.jdbc.OracleDriver()
      );
  </code></pre>
  
  <p>Then it says:</p>
  
  <pre><code>PWC6197: An error occurred at line: 8 in the jsp file: /showUser.jsp
  PWC6199: Generated servlet error:
  package oracle.jdbc does not exist
  </code></pre>
  
  <p>I have added (As an external JAR) the ojdbc file (ojdbc7.jar):</p>
  
  <p><img src="https://i.stack.imgur.com/IFKr0.png" alt="enter image description here"></p>
  
  <p>But still java isn't able to find the <code>package oracle.jdbc</code>.</p>
  
  <p>My .jsp is:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;h1&gt;Title&lt;/h1&gt;
  
      &lt;%-- Set the scripting language to java and import the java.sql package --%&gt;
      &lt;%@ page language="java" import="java.sql.*" %&gt;
  
      &lt;%
        try {
          // Load Oracle Driver class file
          DriverManager.registerDriver(
              new oracle.jdbc.OracleDriver()    // &lt;---- ERROR HERE!
          );
             ...
      %&gt;
  </code></pre>
  
  <p>I have googled many other questions but the solution is far from clear! What exactly should I do to correctly include <code>oracle.jdbc.OracleDriver</code> ?</p>
  
  <h2>Spec</h2>
  
  <p>java version "1.7.0_25"<br>
  Oracle 11.2<br>
  Windows 8 (64bit)<br>
  Eclipse Kepler</p>