Connecting to SQLite Database Fails

后端 未结 1 706
-上瘾入骨i
-上瘾入骨i 2021-01-21 17:34

I am attempting to access my SQLite3 database in a Java Applet. When I run my code to connect to the database I get this error No suitable driver found for a.db

相关标签:
1条回答
  • 2021-01-21 18:10

    Try this:-

    Class.forName("org.sqlite.JDBC");
    Connection conn = DriverManager.getConnection("jdbc:sqlite:a.db");
    
    0 讨论(0)
提交回复
热议问题