Patched javafx (again)
This commit is contained in:
parent
7e558ef2b1
commit
df145f09c8
2 changed files with 7 additions and 13 deletions
|
|
@ -11,7 +11,6 @@ alias l='ls -CF'
|
||||||
alias python='python3'
|
alias python='python3'
|
||||||
alias xournal='xournalpp'
|
alias xournal='xournalpp'
|
||||||
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
||||||
alias javafx='java --module-path /usr/lib/jvm/default/lib/ --add-modules javafx.base,javafx.controls,javafx.graphics,javafx.media,javafx.swing,javafx.web'
|
|
||||||
alias sxiv='nsxiv'
|
alias sxiv='nsxiv'
|
||||||
alias blueman='blueman-manager'
|
alias blueman='blueman-manager'
|
||||||
alias spotify='dlkiller spotify'
|
alias spotify='dlkiller spotify'
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,10 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
# Loading up all javafx modules on Arch
|
# I bascially had to make my own module dir in ~/.local/share/, which is partially jars
|
||||||
|
# that I got from official downloads on the internet, and part shared object files from
|
||||||
if [ -f /usr/lib/jvm/default/lib/jrt-fs.jar ]; then
|
# my specific package manager, since libglass would not work otherwise.
|
||||||
# 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 \
|
java \
|
||||||
--module-path /usr/lib/jvm/default/lib/ \
|
--module-path ~/.local/share/jfx-sdk-17.0.9 \
|
||||||
--add-modules javafx.controls \
|
--add-modules javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web \
|
||||||
$@
|
"$@"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue