Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class dbConnection {
- private static final String SQCONN = "jdbc:sqlite:evidentionalsystem.sqlite";
- public static Connection getConnection()throws SQLException{
- try{
- Class.forName("org.sqlite.JDBC");
- return DriverManager.getConnection(SQCONN);
- }
- catch (ClassNotFoundException ex) {
- ex.printStackTrace();
- }
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement