-2

I used the cmd command java -jar file-name.jar but it wont run. I get an error in my cmd it states "Error: JavaFX runtime components are missing, and are required to run this application"

I used these steps to create a jar: https://medium.com/@vinayprabhu19/creating-executable-javafx-application-part-2-c98cfa65801e file but it wont run.

Jeremy
  • 1

1 Answers1

0

JavaFX support has been removed from JAVA-11. You can find it in older versions. Alternatively, if you want to use a higher version of JAVA you can try the JDK of other vendors such as AZUL OpenJDK which provides JDK with JavaFX support. Alternatively, you can use JavaFX SDK along with JDK which will provide you with JavaFX support.

Mr Coder
  • 21
  • 3