简体   繁体   中英

JavaFX 11 doesn't work with JDK 11, intellij idea

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?

Jose Pereda建议我检查一下JavaFX 11和IntelliJ- https: //openjfx.io/openjfx-docs/#IDE-Intellij这很有帮助。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM