0

I have never used JavaFX before and I am trying to get it running in VS Code using the basic Maven project build tools and it creates the project just fine. I then go in and update all the version in the pom.xml file and when I try to run App.java to see if it works, it just gives an error message saying

java runtime components are missing, and are required to run this application

I then went on to download JavaFX runtime separately. I made sure the Java running in the program is the one on my machine but it just refuses to run. I'm on a Mac with an M2 chip - saying that because I know M2 chips have some compatibility issues with some versions of JavaFX.

1
  • 5
    Did you follow the specific instructions here (under "JavaFX and Visual Studio Code" either "Modular with Maven" or "Non-modular with Maven")? Commented Nov 18 at 19:02

1 Answer 1

0

Problem solves, i just had to download maven locally on my machine and run the code using the

mvn javafx:run command. Not exactly sure why it wouldn't run through vscode but either way its done.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.