0
Phpworker posted
connect with SQLite in Java
i have made some code to connect with SQLite in Javafollowing is what i made
String driver = "org.sqlite.JDBC";
String url = "jdbc:sqlite:D:/sqllite/example.sqlite";
Connection conn;
try {
Class.forName(driver);
conn = DriverManager.getConnection(url);
Statement cs = conn.createStatement();
ResultSet rs = cs.executeQuery("SELECT name,id FROM employee group by name order by id desc");
} catch (SQLException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
but getting some error
java.lang.ClassNotFoundException: org.sqlite.JDBC
So whats wrong with it ?