Closed hjungwoo01 closed 2 months ago
This pull request updates the build.gradle file to ensure compatibility with Java 17 and JavaFX on Mac Silicon (ARM architecture).
build.gradle
~/.zshrc
runjavafx
Setting Up the Alias:
Update your ~/.zshrc file with the following lines:
export JAVA_HOME=`/usr/libexec/java_home -v 17` export PATH="$JAVA_HOME/bin:$PATH" export PATH_TO_FX=~/path/to/javafx-sdk-17.0.11/lib alias runjavafx="java --module-path $PATH_TO_FX --add-modules=javafx.controls,javafx.fxml"
source ~/.zshrc
runjavafx -jar path/to/your-fat-jar-file.jar
Closing, as the migration was done in https://github.com/nus-oss/AB3-J17/commit/fe805d8553bbc329644371a6e732a8317ea6686f
Migrate to Java 17 and Update Gradle for Mac Silicon Compatibility
Description
This pull request updates the
build.gradle
file to ensure compatibility with Java 17 and JavaFX on Mac Silicon (ARM architecture).Details
Noteworthy Information
build.gradle
to include the necessary JavaFX modules for Mac Silicon.~/.zshrc
file and use therunjavafx
command.Setting Up the Alias:
Update your
~/.zshrc
file with the following lines:build.gradle
to ensure Gradle builds work with Mac Silicon architecture.