Here you can find the source of getConnection(String dbFilePath)
public static Connection getConnection(String dbFilePath)
//package com.java2s; import java.sql.Connection; import java.sql.DriverManager; public class Main { private static String default_db_name = "data"; public static Connection getConnection(String dbFilePath) { Connection conn = null;//from www.j av a 2 s. co m try { if (dbFilePath == null || "".equals(dbFilePath.trim())) { dbFilePath = default_db_name; } Class.forName("org.sqlite.JDBC"); conn = DriverManager.getConnection("jdbc:sqlite:" + dbFilePath); } catch (Exception e) { e.printStackTrace(); } return conn; } }