1.命令自元提示:

 cd (位置)

 javac HelloWorld.java

 java HelloWorld

2.Download java eclipse

  柑仔店JAVA sqlite

 

package test1;
import java.sql.Connection;
import java.sql.DriverManager;


public class test1 {

    public static void main(String[] args) {
        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");
        
    }

}
 

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 god4862791350 的頭像
    god4862791350

    god4862791350的部落格

    god4862791350 發表在 痞客邦 留言(1) 人氣()