Loading JDBC libraries on arm without executing Java application

OK, we have a Java application "app. Jar" in a UNIX home directory with an external SQLite driver library

- myapp/app.jar
- myapp/lib/sqlite-jdbc-3.8.7.jar

Equipment udoo arm cortex V9 similiar to raspberry PI

java -version
java version "1.8.0_06
Java(TM) SE Runtime Environment (build 1.8.0_06-b23)
Java HotSpot(TM) Client VM (build 25.6-b23,mixed mode)

The attempt to run this application failed

java -classpath lib/sqlite-jdbc-3.8.7.jar -jar myapp.jar

It appears that the application cannot find the library

java.lang.Exception: No native library is found for os.name=Linux and os.arch=arm
at org.sqlite.sqliteJDBCLoader.loadsqliteNativeLibrary(sqliteJDBCLoader.java:284)
at org.sqlite.sqliteJDBCLoader.initialize(sqliteJDBCLoader.java:65)

So far, I can't find a solution It can be Copy the jar file to the JDK / lib folder?

Edit:

Now I try to make sqlite-jdbc-3.7 Add 2. Jar to JRE, it can work

jdk1.8.0_06/jre/lib/ext

The newer version of sqlite-jdbc-3.8 7. Jar does not work

Solution

I will release version 3.8 The sqlitejdbc loader code in 7 is the same as version 3.7 2 were compared and some insights were found 3.7. 2 seems to have a pure Java pattern, and the corresponding code is from 3.8 7 missing From my little knowledge and quick browse download page, I summarize a target platform that needs a local database I can't find the arm download

If you need a pure Java date library, you may need another choice

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>