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.
#
しかし、前述のコア ダンプは作成されませんでした。
問題は何でしょうか?
ラズベリー Pi B で arch Linux を使用しています