package test;
import java.sql.Connection;
import java.sql.DriverManager;
public class test1 {

public static void main(String[] args) {
// TODO Auto-generated method stub
 Connection c = null;
  try {
   Class.forName("org.sqlite.JDBC");
   c = DriverManager.getConnection("jdbc:sqlite:test.db");
  } catch (Exception e) {
   System.err.println(e.getClass().getName() + ": " + e.getMessage());
   System.exit(0);
  }
  System.out.println("Opened database successfully");
 }
}
 

harry123168 發表在 痞客邦 留言(0) 人氣()