2

我使用 sqlite-jdbc-3.7.2 但想升级到当前版本 sqlite-jdbc-3.8.11.1

这是一些示例代码

public boolean open() {
    try {
        con = DriverManager.getConnection(String.format("jdbc:sqlite:%s",
                databasefile));
    } catch (Exception e) {
        e.printStackTrace();
    }
    System.out.println("Datenbankdatei '" + databasefile
            + "' wurde erfolgreich geöffnet");
    return true;
}
private void initConnection() {
    if (!new File(databasefile).exists()) {
        System.out.println("File not found");
        return;
    }
    con = null;
    try {
        Class.forName("org.sqlite.JDBC");
    } catch (Exception e) {
    }
}

如果我执行这个程序,它需要 180mb 的内存(通过 top -p 看到)

现在我想从这里升级到新版本的 sqlite-jdbc 。我可以在我的 Ubuntu x64 上启动它,但在树莓上我得到“致命错误”

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (os_linux_zero.cpp:254), pid=9134, tid=3060774000
#  fatal error: caught unhandled signal 4
#
# JRE version: OpenJDK Runtime Environment (8.0_45-b14) (build 1.8.0_45-    b14)
# Java VM: OpenJDK Zero VM (25.45-b02 interpreted mode linux-arm )
# Core dump written. Default location: /home/flex/core or core.9134
#
# An error report file with more information is saved as:
# /home/flex/hs_err_pid9134.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

但是没有创建提到的核心转储!

任何想法可能是什么问题?

我在树莓派 B 上使用 arch linux

4

0 回答 0