💠

💠 2024-11-18 14:31:55


JavaFX

OpenJFX | official site

JavaFX Tutorial


jjenkov/javafx-examples

  1. 下载对应系统的SDK,不是jmodJavaFX - Gluon
  2. IDE中调试时增加对应JVM参数 –module-path /path/to/javafx-sdk-17.0.13/lib/ –add-modules=javafx.controls,javafx.fxml
  3. Maven 插件配置打包单个可执行Jar
  4. 运行: java –module-path /path/to/javafx-sdk-17.0.13/lib/ –add-modules=javafx.controls,javafx.fxml -jar target/javafx-examples-0.0.1-SNAPSHOT.jar