From ea55751262a0b927166566553c183ff94f5c1032 Mon Sep 17 00:00:00 2001 From: agryphus Date: Sat, 30 Sep 2023 15:29:22 -0400 Subject: [PATCH] JavaFX sourcing fix --- .local/bin/javafx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .local/bin/javafx diff --git a/.local/bin/javafx b/.local/bin/javafx new file mode 100755 index 0000000..341cc7c --- /dev/null +++ b/.local/bin/javafx @@ -0,0 +1,15 @@ +#!/bin/sh +# Loading up all javafx modules on Arch + +if [ -f /usr/lib/jvm/default/lib/jrt-fs.jar ]; then + # Pacman does something silly where it puts the javafx modules and the openjdk modules in the same folder. + # This causes a conflict with jrt-fs where there is a duplicat module that prevents java from running. + echo "Delete /usr/lib/jvm/default/lib/jrt-fs.jar before starting" + exit 1 +fi + +java \ + --module-path /usr/lib/jvm/default/lib/ \ + --add-modules javafx.controls \ + $@ +