fvarrui / JavaPackager

:package: Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.
GNU General Public License v3.0
1.07k stars 133 forks source link

Packaging run error #349

Closed GuoHuaijian closed 1 year ago

GuoHuaijian commented 1 year ago

I'm submitting a…

Short description of the issue/suggestion:

I developed my program with springboot and Springboot-Javafx-support, and packaged my program with javapackager with the following error image

Steps to reproduce the issue/enhancement: image

What is the expected behavior?

What is the current behavior?

Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Other information (e.g. related issues, suggestions how to fix, links for us to have context)

fvarrui commented 1 year ago

Hi @GuoHuaijian! Please, can you try to run your app from the runnable JAR file instead of EXE file?

You can set winConfig.wrapJar=false and build again your app, so JAR file will not be wrapped into EXE file and then just change to target/${name} and run java -jar ${name}-${version}-runnable.jar.

GuoHuaijian commented 1 year ago

Hi@fvarrui! I change to target/${name} and run java -jar ${name}-${version}-runnable.jar. But it has an error, Error: JavaFX runtime component is missing and needs to be used to run this application. Then I change to target/ and running java -jar ${name}-${version}.jar is fine

fvarrui commented 1 year ago

I change to target/${name} and run java -jar ${name}-${version}-runnable.jar. But it has an error, Error: JavaFX runtime component is missing and needs to be used to run this application

Please, try with this tip. #20

fvarrui commented 1 year ago

Also, would it be possible for you to prepare a simple example that reproduces the problem so that I can do some research on this issue?

fvarrui commented 1 year ago

Hi @GuoHuaijian! Any news?

fvarrui commented 1 year ago

Issue closed due to lack of activity. Please, if the problem persists, reopen this issue. Thanks!