From e888f9d49fd971765b802ba76943d0d2b24d099d Mon Sep 17 00:00:00 2001 From: ian Date: Mon, 25 Mar 2024 22:52:58 +0000 Subject: [PATCH] sqlite working correctly in native image build (now h2 breaks) --- native-build/BuildNativeImage.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/native-build/BuildNativeImage.java b/native-build/BuildNativeImage.java index 62455e53..76fe1252 100644 --- a/native-build/BuildNativeImage.java +++ b/native-build/BuildNativeImage.java @@ -23,15 +23,14 @@ public static void main(String[] a) throws Exception { throw new IllegalStateException("Couldn't find native image executable"); // run native-image - runCommand(nativeImage.get().toString() + - " --allow-incomplete-classpath " + + runCommand(nativeImage.get().toString() + " " + + "-H:+UnlockExperimentalVMOptions " + "-H:EnableURLProtocols=http " + "-H:EnableURLProtocols=https " + "-H:IncludeResources='./webroot/.*' " + "-H:+ReportUnsupportedElementsAtRuntime " + - "-H:ConfigurationFileDirectories=META-INF/native-image " + + "--initialize-at-build-time=org.sqlite.util.ProcessRunner " + "--no-fallback " + - "--initialize-at-build-time=org.sqlite.DB,org.sqlite.NativeDB,org.sqlite.Function,org.sqlite.Function\\$Aggregate,org.sqlite.DB\\$ProgressObserver " + "-jar Peergos.jar peergos"); if (! new File("peergos"+ext).exists()) throw new IllegalStateException("Native build failed!");