代码之家  ›  专栏  ›  技术社区  ›  bolt

javafx 11不适用于jdk11,intellij idea

  •  0
  • bolt  · 技术社区  · 6 年前

    试图让javafx 11工作。

    1. 下载的JavaFX11
    2. 在intellij idea中创建javafx项目
    3. 运行->编辑配置->虚拟机选项->--module path=“path to javafx/javafx-sdk-11.0.1/lib”--add modules=javafx.controls,javafx.fxml
    4. 出现错误:

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

    我该怎么做才能成功?

    1 回复  |  直到 6 年前
        1
  •  0
  •   bolt    6 年前

    jose pereda建议我检查javafx 11和intellij- https://openjfx.io/openjfx-docs/#IDE-Intellij 它有帮助。