I have downloaded sqlite-jdbc-3.72.jar and don't know where to place it so it executed my code using command line as
javac SQLiteJDBC.java
and i run it by using java -classpath ".;sqlite-jdbc-3.7.2.jar" SQLiteJDBC (Windows)
it gives exception as SQLite :: main :: org.sqlite.JDBC and my code is below
import java.sql.*;
public class SQLiteJDBC
{
public static void main(String ar[])
{
Connection c = null;
try
{
Class.forName("org.sqlite.JDBC");
c = DriverManager.getConnection("jdbc:sqlite:test.db");
}
catch(Exception e)
{
System.out.println("SQLite :: main :: "+e.getMessage());
System.exit(0);
}
System.out.println("Opened database successfully");
}
}
System.out.println("SQLite :: main :: "+e.getMessage())
, post the output ofe.printStackTrace()
– rpax