Questions tagged [jpackage]

jpackage is a tool for packaging self-contained Java applications

The jpackage tool packages a Java application into a platform-specific package that includes all of the necessary dependencies.

jpackage:

  • Supports native packaging formats to give end users a natural installation experience. These formats include msi and exe on Windows, pkg and dmg on macOS, and deb and rpm on Linux.
  • Allows launch-time parameters to be specified at packaging time.
  • Can be invoked directly, from the command line, or programmatically, via the ToolProvider API.

JEP

234 questions
5
votes
2 answers

EXCEPTION_ACCESS_VIOLATION after build a windows self-contained application with jdeps + jlink + jpackage

I'm trying to build a bundle (self-contained app) for windows using jdeps + jlink + jpackage. On mac, with the same procedure, I managed to create (following JPackageScriptFX as reference) a fully working self-contained ".app" for this project…
madx
  • 6,723
  • 4
  • 55
  • 59
4
votes
1 answer

Jpackage with ControlsFX

I’m having some issues including Controlsfx when using Jpackage. I have set up a project in IntelliJ with JavaFX using a Archetype from Maven Central. Works fine with JavaFX in IntelliJ. I can package it with Maven (from IntelliJ) and use JPackage…
droid
  • 103
  • 1
  • 15
4
votes
1 answer

JPackage app-image exe launches multiple exe's in JDK 17+

The following small Java program and jpackage command create an app-image which when launched on Windows 10 launches multiple exe's. This does not happen before JDK 17. The same code and command using the JDK 16 jpackage results in only a single…
aauclair
  • 41
  • 1
4
votes
1 answer

How to create launcher as windows service using jpackage (Java 19)

I want to create an installer with jpackage that registers my java application launcher as a Windows service. I have installed WiX Toolset v3.11.2. I have tried to create my installer by specifying the --launcher-as-service flag which is supported…
NassimBtk
  • 71
  • 5
4
votes
1 answer

Can I make an installable 32-bit version of my app using jpackage (Java 17)

I've made an application using Java 17 with JavaFX 16 library. Is there a way to make an installable 32-bit version using JPackage of it? Since Java comes always just in 64-bit since Java 9 (same with JavaFX library), I doubt it's not possible, but…
Youssef Idraiss
  • 396
  • 5
  • 19
4
votes
2 answers

jpackage on Windows: The system cannot find file, error 103

I am trying to package a ScalaFx app I built using jpackage and having trouble on windows (mac & linux work just fine). I am building a fat jar using sbt assembly and then using jpackage to create a .msi however I am getting this error: $ jpackage…
benthecarman
  • 125
  • 7
4
votes
1 answer

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

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…
Jerry Agin
  • 629
  • 1
  • 5
  • 15
4
votes
1 answer

jpackage --type app-image creates infinite recursive directories

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…
Jerry Agin
  • 629
  • 1
  • 5
  • 15
4
votes
1 answer

With JPackage on Windows Is it possible to make main .exe not run as console, but have other laucher run as console?

With JPackage I am unable to get --win-console option to work apart for for the main launcher, but I want the main launcher not to output to console, but have a debug version that does. i.e if I run jpackage --add-launcher…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
4
votes
1 answer

can't find jpackage via ToolProvider

short version: I'm trying to invoke jpackage from a gradle task but the ToolProvider returns null (or better a failed Optional). This is the case on AdoptOpenJDK 14.0.0 (sdkman identifier 14.0.0.hs-adpt) as well as on Java.net (i think that's Oracle…
StephanS
  • 843
  • 1
  • 8
  • 20
4
votes
1 answer

JPackage only returns SDK Version Number on Java 14

I recently ported our Java 11 application to the newly released Java 14 (ZuluJDK). When trying to package our Application with the new JPackage via command line, the only thing that happens, no matter which jpackage-command I'm using, is the…
3
votes
2 answers

How to update a jpackage installed application?

I have a jpackage created application that consists of a single application jar file plus some third-party dependencies. With jpackage I create installers for Linux, macOS, and Windows. All works well. But I don't want my users to have to…
wolfman
  • 123
  • 9
3
votes
1 answer

jpackage codesign exit code 1 already signed

This months macos java app build failed saying codesign returned 1 signing libnet.dylib Taking a copy of libnet.dylib and attempting the same codesign command as jpackage it says Already Signed. This is one of those apparent "worked fine last month…
Hamish258
  • 305
  • 2
  • 9
3
votes
0 answers

How to create native installers using jpackage in maven for each operating system?

Jpackage using maven failed with Akman/jpackage-maven-plugin: Unable to resolve project dependencies: Cannot run program "/usr/bin/bin/java" I am trying to use jpackage command to generate native installers in maven for Windows, Linux and Mac using…
Wortig
  • 963
  • 2
  • 11
  • 37
3
votes
1 answer

jpackage Greek Language EULA not readable

I have successfully generated an installable package with jpackage. All seems to work as expected. My problem is that the Greek characters from my License.txt file are not readable as you can see in the picture below. I don't know if it is relevant…
Thimios
  • 31
  • 4
1
2
3
15 16