Closed hjungwoo01 closed 1 month ago
@hjungwoo01 confirmed you are using the prescribed Azul JDK17+JavaFX version and used SDKman to set the default Java version to the Azul version?
Mac Silicon users, for your comments please ...
@baskargopinath @gongg21, @hjungwoo01, @jyue487, @itstrueitstrueitsrealitsreal, @brein62, @ljy0422, @ryanozx, @Carlintyj
Yes I am using the prescribed Azul JDK17+JavaFX version and used SDKman to set the default Java version to the Azul version.
I am on MacOS (Silicon - M1) with Azul zulu-17 version 17.0.11 (JDK FX). I am running on IntelliJ IDEA 2022.3.1 (Community Edition)
I am unable to replicate the errors in the first place. Without any changes, I could run the build.gradle
file using the IntelliJ run button with pass all tests.
Running the test on gradle from the side bar also provides me all tests passed.
And lastly, using CLI ./gradlew clean build and ./gradlew test both resulted in all tests passed as well.
im able to run build.gradle without any changes as well, able to do run gradlew clean build as well, im using the prescribed Azul JDK17+JavaFX
m2 macbook pro, is there any way i can replicate this error?
Upon testing again, I found that the issue no longer occurs, and everything works as expected without these changes. I’m not sure why the issue doesn’t occur anymore, but there is no need to modify the build.gradle file as previously suggested.
Upon testing again, I found that the issue no longer occurs, and everything works as expected without these changes. I’m not sure why the issue doesn’t occur anymore, but there is no need to modify the build.gradle file as previously suggested
Nice. That was the outcome I was hoping for :-) Thanks @hjungwoo01 @Carlintyj @baskargopinath
Similarly to @baskargopinath @Carlintyj , I am unable to replicate the error, and I have also run ./gradlew clean build
without any issues.
I am using an M1 Pro chip running MacOS Sonoma 14.2.1.
As it looks like this fix is not needed, let's close this PR.
Summary
This pull request introduces changes to the
build.gradle
file to ensure compatibility with JavaFX on Mac Silicon (ARM architecture). These changes are necessary to pass all tests and ensure the application runs correctly using the IntelliJ run button on Mac Silicon devices.Changes Made
Environment Variable for JavaFX Path:
PATH_TO_FX
.Test Configuration:
test
block inbuild.gradle
to include the JavaFX module path and required modules.test { useJUnitPlatform() finalizedBy jacocoTestReport jvmArgs = [ '--module-path', "${pathToFx}", '--add-modules', 'javafx.controls,javafx.fxml' ] }
Application Configuration:
application
block to set default JVM arguments for running the application with JavaFX modules.Justification
AppUtilTest.getImage_exitingImage()
test, while the same build passes when using the./gradlew clean build
command.Request for Feedback
Instructions for Reviewers
Set Up Alias in ~/.zshrc:
Run the Build:
build.gradle
file using the IntelliJ run button.Provide Feedback:
Please review the changes and provide your feedback on whether these updates resolve the issue and improve compatibility on Mac Silicon.