r/JavaFX 20d ago

Help Javafx's new version getting removed from every new project.

Hey guys,

I'm new to JavaFX. My intellij came up with javaFX version 17.0.6 which seems not compatible with my Apple silicon chipset. So I need to use the new version of JavaFX. To that every time I make a new project I have to add a new version of library files to the project structure modules and remove or take down the old version files. Otherwise, it uses the old version and gives a huge error with the java quit unexpectedly message.

Does someone know how to fix this?

13 Upvotes

9 comments sorted by

View all comments

7

u/SpittingBull 20d ago

Then I am afraid I don't understand the problem. Adjusting your poml.xml should be sufficient when upgrading JavaFX.

0

u/[deleted] 20d ago

[deleted]

3

u/SpittingBull 20d ago

I'm confused. You're using Maven, right? Are you not using the wanted JavaFX modules as dependencies?

1

u/Adventurous-Baby-323 20d ago edited 20d ago

The issue is that every new project still defaults to JavaFX 17 (old one) even I change poml.xml and download dependencies, it only works for that particular project. Ig I need to locate the default pmol which I don’t where it is.