java - SQLite JDBC and SQLite version -
i downloaded jdbc driver
sqlite-jdbc4-3.8.2-snapshot.jar
from
https://bitbucket.org/xerial/sqlite-jdbc/downloads
after included eclipse project via
configure build path
and afterwards ran code:
public class sqliteinput { public static void main(string[] args) throws exception { newdb(); } public static void newdb () throws classnotfoundexception, sqlexception{ try{ class.forname("org.sqlite.jdbc"); connection con = drivermanager.getconnection("jdbc:sqlite:newdb.db"); con.close(); }catch(exception ed) { system.out.println("error --> " + ed); } }}
which creates new database-file called
newdb.db
but if open file firefox sqlite manager , run code:
select sqlite_version() 'sqlite version';
it returns:
sqlite version - 3.7.17
and not 3.8.2 jdbc driver says. doing wrong?!
Comments
Post a Comment