Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task ':richtextfx-demos:configJavafxRun'. #1171

Open
1030852813 opened this issue Feb 15, 2023 · 2 comments
Open

Execution failed for task ':richtextfx-demos:configJavafxRun'. #1171

1030852813 opened this issue Feb 15, 2023 · 2 comments

Comments

@1030852813
Copy link

The error shows up when running demos. I am using M1 chip and the following links are not found:

Execution failed for task ':richtextfx-demos:configJavafxRun'.

Could not resolve all files for configuration ':richtextfx-demos:runtimeClasspath'.
Could not find javafx-fxml-11-mac-aarch64.jar (org.openjfx:javafx-fxml:11).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/openjfx/javafx-fxml/11/javafx-fxml-11-mac-aarch64.jar
Could not find javafx-controls-11-mac-aarch64.jar (org.openjfx:javafx-controls:11).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/11/javafx-controls-11-mac-aarch64.jar
Could not find javafx-graphics-11-mac-aarch64.jar (org.openjfx:javafx-graphics:11).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/11/javafx-graphics-11-mac-aarch64.jar
Could not find javafx-base-11-mac-aarch64.jar (org.openjfx:javafx-base:11).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/11/javafx-base-11-mac-aarch64.jar

@Jugen
Copy link
Collaborator

Jugen commented Feb 15, 2023

So none of those files exist on maven, however each file without "-aarch64" does exist.
Anybody have any ideas on where the "-aarch64" comes from or how to get rid of it ?

@Elmari
Copy link

Elmari commented Feb 19, 2023

As far as I understand it, it is as follows: Mac M1 (and newer) are arm based processors. These need specially adapted JavaFX dependencies, i.e. there are now JavaFX dependencies for intel-based Macs as well as arm-based Macs. Support for M1 was first added with JavaFX 17. These dependencies have the classifier mac-aarch64. If you want to add them explicitly (though this should not be necessary), you could do that as follows (maven snippet):

<dependency>
    <groupId>org.openjfx</groupId>
    <artifactId>javafx-graphics</artifactId>
    <version>17</version>
    <classifier>mac-aarch64</classifier>
</dependency>

So, in order to run the demos on an M1-based Mac, it should be enough to switch from JavaFX 11 to JavaFX 17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants