diff --git a/flake.nix b/flake.nix index e0fd8d4..2f05f2b 100644 --- a/flake.nix +++ b/flake.nix @@ -89,6 +89,7 @@ native-image \ --no-fallback \ + --enable-native-access=javafx.graphics \ --module-path "$javafx_module_path" \ --add-modules javafx.controls,javafx.graphics \ -cp "$app_classpath" \ diff --git a/src/main/resources/META-INF/native-image/com.gregor/jprototerm/reflect-config.json b/src/main/resources/META-INF/native-image/com.gregor/jprototerm/reflect-config.json index a20e439..1423e3e 100644 --- a/src/main/resources/META-INF/native-image/com.gregor/jprototerm/reflect-config.json +++ b/src/main/resources/META-INF/native-image/com.gregor/jprototerm/reflect-config.json @@ -24,6 +24,11 @@ "allDeclaredConstructors": true, "allPublicConstructors": true }, + { + "name": "com.sun.prism.es2.X11GLFactory", + "allDeclaredConstructors": true, + "allPublicConstructors": true + }, { "name": "com.sun.prism.sw.SWPipeline", "allDeclaredConstructors": true,