Add check for lzma
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user