title: Sqlite database ..java.lang.ClassNotFoundException:org.sqlite.jdbc
body: <p>Hello guys I have create a small java application for desktop that simple logs data into an sqllite database. The jar files work well on the computer that was built, but, when I distributed on other pc it display the message that goes like this  <strong><em>java.lang.ClassNotFoundException:org.sqlite.jdbc</em></strong>
  I used this code: I know I have to change the classpath apparently, but I am not sure how to proceed so that this program work on other pcs. I notice that this programs works well on the pc that it was built on but it is because i used this classpath..."jdbc:sqlite:C:\Users\USUARIO\Documents\workspace\School2015.sqlite"... which is my local computer.</p>
  
  <p>My question is how do I change this classpath so that the program runs fine on other pc than the one it was built on?</p>
  
  <pre><code>public class sqlConnection {
  
      Connection conn=null;
  
      public static Connection dbConnector()
      {
          try{
              Class.forName("org.sqlite.JDBC");
              Connection conn=DriverManager.getConnection("jdbc:sqlite:C:\\Users\\USUARIO\\Documents\\workspace\\School2015.sqlite");
              JOptionPane.showMessageDialog(null, "BIENVENIDO! Estás Conectado");
              return conn;
             }catch (Exception e)
             {
              JOptionPane.showMessageDialog(null, e);
              return null;
             }
  
      }
  }
  </code></pre>