Avon Member Licensed User Longtime User Apr 27, 2017 #1 I get this runtime error: B4X: java.lang.RuntimeException: Class not found: org.sqlite.JDBC because of this source code line: B4X: SQL1.InitializeSQLite("c:\", "b4jdev\chrisdev\test.db", False) Which library am I missing please?
I get this runtime error: B4X: java.lang.RuntimeException: Class not found: org.sqlite.JDBC because of this source code line: B4X: SQL1.InitializeSQLite("c:\", "b4jdev\chrisdev\test.db", False) Which library am I missing please?
DonManfred Expert Licensed User Longtime User Apr 27, 2017 #2 Avon said: Which library am I missing please? Click to expand... You did not added the jdbc connector jar???? https://www.b4x.com/android/forum/threads/sql-tutorial.35185/ 2. Add the new module attribute: #AdditionalJar: <jar name> This attribute tells the compiler to add the jar to the package. For example to connect to a MySQL database: #AdditionalJar: mysql-connector-java-5.1.27-bin.jar Click to expand... You need to use a connector for SQLite for sure.... Try this one -> B4X: #AdditionalJar: sqlite-jdbc-3.16.1 Upvote 0
Avon said: Which library am I missing please? Click to expand... You did not added the jdbc connector jar???? https://www.b4x.com/android/forum/threads/sql-tutorial.35185/ 2. Add the new module attribute: #AdditionalJar: <jar name> This attribute tells the compiler to add the jar to the package. For example to connect to a MySQL database: #AdditionalJar: mysql-connector-java-5.1.27-bin.jar Click to expand... You need to use a connector for SQLite for sure.... Try this one -> B4X: #AdditionalJar: sqlite-jdbc-3.16.1
Avon Member Licensed User Longtime User Apr 27, 2017 #3 Thanks, that's the one, now we are in business! Upvote 0