JPackage

Cannot rerun Java JPackage installer if already installed, second time just exits without warning

帅比萌擦擦* 提交于 2021-01-13 09:13:53
问题 Cannot rerun JPackage installer if already installed, second time just seems to exit without warning, is this correct behaviour on Windows ? You may ask why I want to do this anyway? Well in my case I am trying to build a JPackage installer for my Java application, so I am building it installing it, then tweaking the settings, rebuilding it and try to reinstall. It took me some time to work out that I couldn't not reinstall it unless i uninstall the first installation (using Control Panel,

jpackage --type app-image creates infinite recursive directories

风流意气都作罢 提交于 2021-01-05 12:45:29
问题 I'm trying to use jpackage to create an installer for my Java app. I'm on Windows 10 using OpenJDK 15.0.1. I can build an installer using jpackage --input C:\MyApp --main-jar MyApp.jar This basically works, but the installed application lacks resource files. According to the documentation, I should be able to build an app image, add my resource files to the image, then build the installer from the modified app image, as follows jpackage --type app-image -n MyAppImage copy <resource files>

jpackage crashes when creating an installer with the --app-image option

自作多情 提交于 2021-01-04 04:17:34
问题 I'm trying to use jpackage to create an installer for my Java app. I'm on Windows 10 using OpenJDK 15.0.1. I can build an installer using jpackage --input C:\MyApp --main-jar MyApp.jar This basically works, but the installed application lacks resource files. According to the documentation, I should be able to build an app image, add my resource files to the image, then build the installer from the modified app image, as follows cd C:\MyApp mkdir build copy MyApp.jar build jpackage --type app

jpackage crashes when creating an installer with the --app-image option

我的未来我决定 提交于 2021-01-04 04:14:06
问题 I'm trying to use jpackage to create an installer for my Java app. I'm on Windows 10 using OpenJDK 15.0.1. I can build an installer using jpackage --input C:\MyApp --main-jar MyApp.jar This basically works, but the installed application lacks resource files. According to the documentation, I should be able to build an app image, add my resource files to the image, then build the installer from the modified app image, as follows cd C:\MyApp mkdir build copy MyApp.jar build jpackage --type app

jpackage crashes when creating an installer with the --app-image option

☆樱花仙子☆ 提交于 2021-01-04 04:11:11
问题 I'm trying to use jpackage to create an installer for my Java app. I'm on Windows 10 using OpenJDK 15.0.1. I can build an installer using jpackage --input C:\MyApp --main-jar MyApp.jar This basically works, but the installed application lacks resource files. According to the documentation, I should be able to build an app image, add my resource files to the image, then build the installer from the modified app image, as follows cd C:\MyApp mkdir build copy MyApp.jar build jpackage --type app

java源码学习-JDK14之jpackage命令

核能气质少年 提交于 2020-12-01 10:22:23
鲁班学院 java源码学习- JDK14之jpackage命令 jpackage命令使用场景 使用场景是面向java桌面端程序打包. 可以让windows/mac 直接双击使用java程序,对系统里面有没有jdk/jre不做要求. 在这里,我们先理一下以前java桌面程序是怎么运行的: jdk8及以前 这时候的java客户端程序,主要分两部分, 一部分是可执行jar包, 一部分是电脑里面要装jdk/jre , 然后通过 java -jar XXXXX.jar 来运行程序. jdk9及以后的模块化 这是java模块化的一个分界线,其实jdk9,jdk10,我都没有用过, 我是直接尝试的jdk11. 在模块化的基础上, 项目多了一个文件, moudle-info.java 如下图所示: 如上图,所示,主要是 requires , opens , exports 这三个关键字. requires : 当前模块想要运行的话,需要哪些依赖,相当于在maven引包的基础上,要再声明一遍依赖 opens: 当前模块中的哪些包,可以被反射. 如fxml中要声明处理的controller , 每当fxml加载的时候,都会去新建一个controller实例, 所以需要opens controller的包名给javafx.fxml exports: 当前模块有哪些包,可以被引用.

The module name specified in 'application.mainModule' (null) has not the expected value (hellofx) [closed]

折月煮酒 提交于 2020-08-03 11:31:48
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 days ago . Improve this question Running the JavaFX project with the run function in Gradle works fine, but using the jpackage function in Gradle does not work properly. An error occurs while executing the jpackage function: 12:56:41 AM: Executing task 'jpackage'... > Configure project : Project : => 'hellofx'

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

被刻印的时光 ゝ 提交于 2020-07-30 04:29:30
问题 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 Packager: Can not build artifact - fx: deploy is not available in this JDK I am using Java SE 14.0.1. My steps: create JavaFX add Java SE 14.0.1 as JDK add artifact build How can I fix the error? I want my javafx application to be runnable on mac, windows and linux. Is there a way to do this? 回答1: This error message is pretty clear,