Raspberry PI上的Sqlite4Java没有找到ARM.so文件

时间:2014-09-19 14:55:57

标签: java linux sqlite raspberry-pi

有人可以帮助我,我想让我的项目在我的Raspberry PI上运行,我收到了一个错误。我相信它不能加载libsqlite4java-linux-arm.so文件

这是命令

的输出
java -jar sqlite4java.jar -d

输出

sqlite4java 282
140919:155005.232 FINE [sqlite] Internal: loading library
140919:155005.255 FINE [sqlite] Internal: java.library.path=/usr/java/packages/lib/arm:/lib:/usr/lib
140919:155005.259 FINE [sqlite] Internal: sqlite4java.library.path=null
140919:155005.261 FINE [sqlite] Internal: cwd=/home/pi/.
140919:155005.264 FINE [sqlite] Internal: default path=/home/pi
140919:155005.267 FINE [sqlite] Internal: forced path=null
140919:155005.271 FINE [sqlite] Internal: os.name=linux; os=linux
140919:155005.274 FINE [sqlite] Internal: os.arch=arm
140919:155005.282 FINE [sqlite] Internal: trying to load sqlite4java-linux-arm from /home/pi/libsqlite4java-linux-arm.so
140919:155005.291 FINE [sqlite] Internal: cannot load sqlite4java-linux-arm from /home/pi/libsqlite4java-linux-arm.so: java.lang.UnsatisfiedLinkError: /home/pi/libsqlite4java-linux-arm.so: /home/pi/libsqlite4java-linux-arm.so: cannot open shared object file: No such file or directory
140919:155005.296 FINE [sqlite] Internal: trying to load sqlite4java-linux-arm
140919:155005.304 FINE [sqlite] Internal: cannot load sqlite4java-linux-arm: java.lang.UnsatisfiedLinkError: no sqlite4java-linux-arm in java.library.path
140919:155005.307 FINE [sqlite] Internal: trying to load sqlite4java-linux
140919:155005.313 FINE [sqlite] Internal: cannot load sqlite4java-linux: java.lang.UnsatisfiedLinkError: no sqlite4java-linux in java.library.path
140919:155005.315 FINE [sqlite] Internal: trying to load sqlite4java
140919:155005.321 FINE [sqlite] Internal: cannot load sqlite4java: java.lang.UnsatisfiedLinkError: no sqlite4java in java.library.path
140919:155005.324 FINE [sqlite] Internal: trying to load sqlite4java-linux-arm-d
140919:155005.336 FINE [sqlite] Internal: cannot load sqlite4java-linux-arm-d: java.lang.UnsatisfiedLinkError: no sqlite4java-linux-arm-d in java.library.path
140919:155005.343 FINE [sqlite] Internal: trying to load sqlite4java-linux-d
140919:155005.355 FINE [sqlite] Internal: cannot load sqlite4java-linux-d: java.lang.UnsatisfiedLinkError: no sqlite4java-linux-d in java.library.path
140919:155005.358 FINE [sqlite] Internal: trying to load sqlite4java-d
140919:155005.375 FINE [sqlite] Internal: cannot load sqlite4java-d: java.lang.UnsatisfiedLinkError: no sqlite4java-d in java.library.path
Error: cannot load SQLite
java.lang.UnsatisfiedLinkError: /home/pi/libsqlite4java-linux-arm.so: /home/pi/libsqlite4java-linux-arm.so: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1814)
        at java.lang.Runtime.load0(Runtime.java:809)
        at java.lang.System.load(System.java:1083)
        at com.almworks.sqlite4java.Internal.tryLoadFromPath(Internal.java:337)
        at com.almworks.sqlite4java.Internal.loadLibraryX(Internal.java:117)
        at com.almworks.sqlite4java.SQLite.main(SQLite.java:368)
pi@raspberrypi ~ $

我已从这里的下载页面下载了libsqlite4java-linux-armv7a.so和libsqlite4java-linux-armv5te.so文件https://code.google.com/p/sqlite4java/downloads/list

我已将两个文件(单独)传输到我的PI并运行上面的命令,我得到相同的输出。我已将每个文件重命名为libsqlite4java-linux-arm.so但仍然没有运气。

我发现错误信息的这一部分有点奇怪,不确定这是否与它有关,虽然不知道它为什么会发生

java.lang.UnsatisfiedLinkError: /home/pi/libsqlite4java-linux-arm.so: /home/pi/libsqlite4java-linux-arm.so: cannot open shared object file: No such file or directory

0 个答案:

没有答案