2

Trying to get JavaFX 11 working.

  1. Downloaded JavaFX 11
  2. Created JavaFX project in IntelliJ IDEA
  3. Run -> Edit configurations -> VM options -> --module-path="path-to-javafx/javafx-sdk-11.0.1/lib" --add-modules=javafx.controls,javafx.fxml
  4. Got an error:

    Error occurred during initialization of boot layer
    java.lang.module.FindException: Module javafx.controls not found
    
    Process finished with exit code 1
    

What should I do to make this work?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
bolt
  • 387
  • 2
  • 6
  • 16
  • java11 does not include javafx, which you must now install separately. – ncmathsadist Nov 23 '18 at 23:17
  • Did you check this [question](https://stackoverflow.com/questions/53447738/java-fx-modular-application-module-not-found-java-11-intellij)? Have you checked the docs for getting started with [JavaFX 11 and IntelliJ](https://openjfx.io/openjfx-docs/#IDE-Intellij)? Please explain what is different in your case from any of the mentioned samples. – José Pereda Nov 23 '18 at 23:24
  • Possible duplicate of [Java FX Modular Application, Module not found (Java 11, Intellij)](https://stackoverflow.com/questions/53447738/java-fx-modular-application-module-not-found-java-11-intellij) – Naman Nov 24 '18 at 04:08

1 Answers1

0

Jose Pereda advised me to check JavaFX 11 and IntelliJ - https://openjfx.io/openjfx-docs/#IDE-Intellij It helped.

bolt
  • 387
  • 2
  • 6
  • 16