通过Java本身提供的JDBC连结
需要导入sqlitejdbc-v033-nested.jar文件
private static String url="org.sqlite.JDBC";
private static String dri="jdbc:sqlite:/D:test.db文件对应的目录路径(不能包含中文)";
public static Connection getConn(String table) throws Exception{
Class.forName(url);
Connection conn = DriverManager
.getConnection(dri+table);
return conn;
}