- My application uses SQLite database.
- Database is being accessed from Java application.
- And the application is deployed on Raspberry Pi 4
- java version "1.8.0_381"
- sqlite: sqlite-jdbc-3.44.1.0
The SQLite JDBC contains library for aarch 64
However while opening connection, the error says library not found. what could be the cause?
org.sqlite.NativeLibraryNotFoundException:
No native library found for os.name=Linux, os.arch=aarch64, paths=[/org/sqlite/native/Linux/aarch64:
/usr/java/packages/lib/arm:/lib:/usr/lib]
Code is as below
Class.forName(DEF_JDBC_CLASS_NAME);
Connection objConnection = DriverManager.getConnection("jdbc:sqlite:" + sDataBasePath);
Additional information:
- The issue does not occur if hardware is Raspberry Pi 2 or 3.
- Architecture of Raspberry Pi 4 is aarch64.
- However, Raspberry Pi 2 and 3 use a different architecture (armhf)
