Error: Java FX Packager: Can not build artifact - fx: deploy is not available in this JDK

前端 未结 1 1558
闹比i
闹比i 2021-01-17 06:55

I have since 3 months problems with my javafx application, the problem is that I can\'t build my javafx application. When I build this error occurs: Error: Java FX Pac

1条回答
  •  隐瞒了意图╮
    2021-01-17 07:37

    This error message is pretty clear, isn't it? The old Java FX Packager does not exist anymore. The new tool to use is "jpackage" which is part of JDK 14. In order to create a platform specific executable image you have to specify --type app-image.

    https://docs.oracle.com/en/java/javase/14/docs/specs/man/jpackage.html

    And here is even a tutorial project with complete code which I co-authored. Have a look at: https://github.com/dlemmermann/JPackageScriptFX

    0 讨论(0)
提交回复
热议问题