Here you can find the source of getSQLiteConnection()
public static Connection getSQLiteConnection() throws ClassNotFoundException, SQLException
//package com.java2s; //License from project: Open Source License import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class Main { public static Connection getSQLiteConnection() throws ClassNotFoundException, SQLException { String fileName = "E:\\Java\\JavaEE\\SimpleWebApp\\WebContent\\sqlite.db"; return getSQLiteConnection(fileName); }//from w w w . j a v a2 s . c o m public static Connection getSQLiteConnection(String fileName) throws SQLException, ClassNotFoundException { // Declare the class Driver for SQLite DB Class.forName("org.sqlite.JDBC"); // URL Connection for SQLite // Example: jdbc:sqlite:file_sqlite.db String connectionURL = "jdbc:sqlite:" + fileName; Connection conn = DriverManager.getConnection(connectionURL); return conn; } }