title: ORA-28040: No matching authentication protocol : Oracle 12c Upgrade
body: <p>We have migrated our Oracle database to 12c from 11g.
  We have a legacy application running in Java 1.5 and using ojdbc14.jar.</p>
  
  <p>Our application is not able to create connection to database error saying :</p>
  
  <pre><code>java.sql.SQLException: ORA-28040: No matching authentication protocol
  </code></pre>
  
  <p>I reffered to answer <a href="https://stackoverflow.com/questions/24100117/ora-28040-no-matching-authentication-protocol-exception">ORA-28040: No matching authentication protocol exception</a>, and tried to upgrade my ojdbc14.jar to ojdbc6.jar.</p>
  
  <p>I now have a different error message saying :  </p>
  
  <pre><code>  error: OracleCallableStatement is not public in oracle.jdbc.driver; cannot be accessed from outside package
  import oracle.jdbc.driver.OracleCallableStatement;
                            ^
  error: OracleTypes is not public in oracle.jdbc.driver; cannot be accessed from outside package
              cstmt.registerOutParameter(3,oracle.jdbc.driver.OracleTypes.CURSOR);
                                             ^
  </code></pre>
  
  <p>Ant build file :</p>
  
  <pre><code>&lt;javac srcdir="${src}" destdir="${classes}" source="1.5" target="1.5"&gt;
              &lt;classpath refid="cpath" /&gt;
  &lt;/javac&gt;
  </code></pre>
  
  <p>Not sure what exactly we should do to get the application working.</p>