B4J Question Sqlite, tableView, library missing?

Avon

Member
Licensed User
Longtime User
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
Which library am I missing please?
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

You need to use a connector for SQLite for sure....

Try this one ->
B4X:
#AdditionalJar: sqlite-jdbc-3.16.1
 
Upvote 0
Top