Add check for lzma

This commit is contained in:
mcrcortex
2025-04-18 20:54:01 +10:00
parent 3b2614631d
commit 0234c09495

View File

@@ -384,10 +384,11 @@ public class DHImporter implements IDataImporter {
boolean hasJDBC = false; boolean hasJDBC = false;
try { try {
Class.forName("org.sqlite.JDBC"); Class.forName("org.sqlite.JDBC");
Class.forName("org.tukaani.xz.XZInputStream");
hasJDBC = true; hasJDBC = true;
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
//throw new RuntimeException(e); //throw new RuntimeException(e);
Logger.error("Unable to load sqlite JDBC, DHImporting wont be available", e); Logger.error("Unable to load sqlite JDBC or lzma decompressor, DHImporting wont be available", e);
} }
HasRequiredLibraries = hasJDBC; HasRequiredLibraries = hasJDBC;
} }