Bundle JavaFX app with openjdk 11 + runtime

前端 未结 5 1487
生来不讨喜
生来不讨喜 2020-12-16 01:52

I\'ve created a small HelloWorld Java app that relies on OpenJDK 11 and JavaFX. The app is packaged in a jar file which can only be run if I have installed Java 11 and JavaF

5条回答
  •  暖寄归人
    2020-12-16 02:34

    You can bundle a whole JDK with your app and create a batch script to run your app using the bundled JDK. I know this approach will bloat up your release significantly, but the alternative is to ask your user to install JDK themselves, which is not trivial for non-tech savvy people. Or you can release both versions, one with JDK bundled and one without.

提交回复
热议问题