Reputation: 149
I'm using IntelliJ and I want to run an old JavaFX project I used to run in Linux, I've imported the libraries and I've used the vm parameters
--module-path /Users/frenk/Desktop/javafx-sdk-17/lib --add-modules javafx.controls,javafx.fxml
but I keep receiving the same error
Error: JavaFX runtime components are missing, and are required to run this application
all the answers I've seen are related to the vm params so I can't figure out what might be the problem, I'm using java 16 as runtime and macOS big sur
Upvotes: 0
Views: 814
Reputation: 149
Solved with a workaround, I created a new JavaFX project with IntelliJ using the BellSoft SDK, then I copied the content inside my old src
folder to the new one, everything works so I'm ok with that.
Stil don't know why the original project isn't running maybe some reference to the oldest library I was using when I wrote the program in Linux
Upvotes: 0