title: Java - SQLite connection (No suitable driver found for JDBC:sqlite:main.db)
body: <p>I have problem with SQLite connection on my Java project. Error looks like this :</p>
  
  <blockquote>
    <p>No suitable driver found for JDBC:sqlite:main.db</p>
  </blockquote>
  
  <p>That's my code: </p>
  
  <pre><code>public static void main(String[] args)  {
  
      Connection c = null;
      try {
        //  Class.forName("org.sqlite.JDBC");
          String url = "JDBC:sqlite:main.db";
          c = DriverManager.getConnection(url);
          System.out.println("Connection to sql");
      } catch ( SQLException e ) {
          System.err.println( e.getMessage() );
      } finally {
          try{
              if( c!= null ) {
                  c.close();
              }
          }catch( SQLException ex )
          {
              System.out.println(ex.getMessage());
          }
      }
  }
  </code></pre>
  
  <p>Can You help me please? </p>