title: Type mismatch: cannot convert from Connection to Connection
body: <p>I want  JDBC connection to MSaccess.
  But </p>
  
  <pre><code>Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  Connection con = DriverManager.getConnection("jdbc:odbc:access");
  </code></pre>
  
  <p>it gives </p>
  
  <blockquote>
    <p>Type mismatch: cannot convert from Connection to Connection</p>
  </blockquote>
  
  <p>what is solution for that?</p>
  
  <p>I m using Servlet and jsp
  in jsp -</p>
  
  <pre><code>Organization Name:    &lt;input type="text"  name="Organization_name" &gt;&lt;br&gt;
  </code></pre>
  
  <p>i want when Organization_name entered it will be add it in my access <strong>database</strong>
  i have tried but i m facing  following problem</p>
  
  <pre><code>Connection con = DriverManager.getConnection("jdbc:odbc:access");
  </code></pre>
  
  <p>it gives <strong>Type mismatch: cannot convert from Connection to Connection</strong> </p>