JavaFX sourcing fix

This commit is contained in:
agryphus 2023-09-30 15:29:22 -04:00
parent e55c216923
commit ea55751262

15
.local/bin/javafx Executable file
View file

@ -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 \
$@