title: Compilation error incompatible types: java.sql.Connection cannot be converted to Connection
body: <p>we have a project in school, and I want to use SQLite.</p>
  
  <p>I did an tutorial on internet which use NetBeans to connect me on my DB and it work but my teacher probably don't have NB so I try to compile it on javac.
  so this appears when i test it.</p>
  
  <pre><code> Connection.java:72: error: incompatible types: java.sql.Connection cannot be converted to Connection
                                  conn = DriverManager.getConnection("jdbc:sqlite:test.db");
                                                                    ^
  Connection.java:78: error: cannot find symbol
                          Statement stmt = conn.createStatement();
                                               ^
    symbol:   method createStatement()
    location: variable conn of type Connection
  2 errors
  </code></pre>
  
  <p>so my code is here </p>
  
  <pre><code>        try {
              Connection conn = null;
              try {
                  Class.forName("org.sqlite.JDBC");
                  conn = DriverManager.getConnection("jdbc:sqlite:c:\sqlite\test.db");
              } catch ( Exception e ) {
                  System.err.println( e.getClass().getName() + ": " + e.getMessage() );
                  System.exit(0);
              }
              System.out.println("Opened database successfully");
              Statement stmt = conn.createStatement();
              // create a new table
  
              stmt.execute(sqldoc);
              stmt.execute(sqlaud);
              stmt.execute(sqlvid);
              stmt.execute(sqlliv);
              stmt.execute(sqlcli);
              stmt.execute(sqlemp);
          } catch (SQLException e) {
              System.out.println(e.getMessage());
          }
  </code></pre>
  
  <p>in an other file, I had one more error, which concern getMetaData()</p>
  
  <p>I hadn't take a look to this on internet but I don't find the answer to this error</p>