title: Unable to connect to database (No suitable driver found)
body: <p>My connection code:</p>
  <pre><code>try {           
    Connection con = DriverManager.getConnection(&quot;jdbc:sqlite:myDB.sqlite&quot;);
    PreparedStatement pstm = con.prepareStatement(&quot;insert into hell(username,pssword) &quot; +
  &quot;values ('&quot;+tfUname.getText()+&quot;','&quot;+tfUpass.getText()+&quot;')&quot;);
  
    pstm.close();
    con.close();
    JOptionPane.showMessageDialog(null,&quot;Congrats, you have been registered succesfully&quot;);
    RegisterWindow rw = new RegisterWindow();
    rw.setVisible(false);
    pack();
    dispose();
  } catch(SQLException ex) {
    setTitle(ex.toString());
  }
  </code></pre>
  <p>This is just a window to insert a user name and password into the database. When I click the button following exception appears:</p>
  <pre><code>&quot;java.sql.SQLException: No suitable driver found for jdbc:sqlite:C\\LoginJava2\\myDB.sqlite&quot; 
  </code></pre>
  <p>I found an example of how to connect to an SQLite database in Java which works well. I'm doing this in WindowBuilder (Eclipse), using the same driver from the example. I've tried different drivers but that message still appears.</p>