Last active
April 30, 2021 16:15
-
-
Save mszczepanczyk/1aa4c2f672ccfc3afe8d3c196e5f3de3 to your computer and use it in GitHub Desktop.
Run FileBot with JavaFX on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# fixes "Failed to initialize JavaFX. Please install JavaFX." | |
# $ ls -1 | |
# FileBot.jar | |
# filebot.sh | |
# javafx-sdk-11.0.2 | |
set -e | |
# https://stackoverflow.com/questions/59895/get-the-source-directory-of-a-bash-script-from-within-the-script-itself | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
java -p "$DIR/javafx-sdk-11.0.2/lib" --add-modules javafx.swing --add-modules javafx.fxml --add-modules javafx.controls -jar FileBot.jar "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it works ty :)