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
13
votes
4 answers

Code signing + notarization using jpackage utility isn't working on macOS

For some context, I'm using the jpackage utility to try to create a signed DMG file to deliver to my users. The reason I need to sign this DMG is because I would like to notarize the software. By the way, I'm not sure if notarization is possible…
Soham
  • 762
  • 1
  • 5
  • 14
9
votes
1 answer

What should linux-menu-group be when creating JPackage installer Java application on Linux?

What are the norms for creating JPackage installer Java application on Linux ? I have created an installer for Windows, and am now creating one on Linux (using Ubuntu) So far I have: -i target/Jaikoz/buildLinux --main-class…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
9
votes
1 answer

In Java how do you debug exe created by JPackage

I am trying to convert an Windows installation of Java app created with Izpack to use JPackage provided In Java 14. The installer builds and installs, but when I try and run the exe it creates it fails, but gives no information about why it…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
8
votes
0 answers

use jpackage with wix4

I am trying to package an application with jpackage for windows. I am using java 19 and wix 4. Package Id Version Commands --------------------------------------------- wix 4.0.0-preview.1 wix java 19.0.1…
mr mcwolf
  • 2,574
  • 2
  • 14
  • 27
8
votes
1 answer

Distributing JavaFX Applications that use automodules

I have created a JavaFX application. It runs perfectly in my Intellij IDE. Now I want to distribute the application - i.e. I want to obtain an installer that users could download and then it would install the application for them. I found a very…
Luk
  • 1,009
  • 2
  • 15
  • 33
8
votes
1 answer

How to upgrade jpackage Application without running another installer?

After a jpackage application has been installed, how can I allow my users to upgrade the application without requiring them to run the installer all over again? What options do I have to allow users to upgrade? An ideal scenario is that the…
spierce7
  • 14,797
  • 13
  • 65
  • 106
8
votes
1 answer

is there a way to change icon of the installer file using jpackage?

I have a simple modular javafx application. i compile it using dir /s /b src\*.java > sources.txt & javac --module-path %PATH_TO_FX% -d mods/hellofx @sources.txt & del sources.txt This creates mods directory I then create runtime image using the…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
7
votes
1 answer

How to make a portable executable file using JPackage?

I'm using JPackage (OpenJDK 15.0.1) to make a portable executable file for Windows. I tried the command below, but I double-clicked the generated exe file and the installer window was displayed. It seemed that it was not portable executable but just…
ryo
  • 73
  • 4
7
votes
1 answer

running JavaFX application after jpackage

I have some really noob question. I tried to create installation for my test app with jpackage in OpenJDK 14. Here is what I did: first, created custom JRE with jlink --module-path "C:\Java\javafx-sdk-14\lib" --add-modules…
6
votes
1 answer

How to add a program to startup with jpackage?

i am recently looked at jpackage there is any option automatically adds the appilication to startup, For Example consider I have, App.java package org.openjfx; import javafx.application.Application; import javafx.scene.Scene; import…
srilakshmikanthanp
  • 2,231
  • 1
  • 8
  • 25
6
votes
1 answer

Using JPackage how do I create the installer icon on Windows

I am using JPackage to install my Java application on Windows, I have my own application icon and I would also like this to also be used when I run the installer. I have followed the general approach described here to run jpackage twice, once…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
6
votes
2 answers

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

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…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
6
votes
2 answers

Using JPackage to make an AppImage

I'm trying to create an AppImage using JPackage (On a Ubuntu 18.04 System using OpenJDK 14) All the examples I find are of the form jpackage --type app-image --name myappimage --input target --main-jar myuberjar.jar --main-class myapplication.core…
kxygk
  • 148
  • 1
  • 10
5
votes
1 answer

Can not open Windows-MY keystore when using jpackage

Problem: Using JPackage to create an executable for Windows does not work with KeyStore. It returns an error. Code: KeyStore.getInstance("Windows-MY"); will throw exception: java.security.KeyStoreException: Windows-MY not found at…
Thiago Bomfim
  • 408
  • 6
  • 12
5
votes
1 answer

Java program uses wrong locale when jpackaged

I am parsing strings representing German-style numbers (i.e., decimal comma and optional full stop for grouping thousands), e.g., "2.804,13"; this is just done using a DecimalFormat based on my desired Locale: package loc_test; import…
Hans
  • 2,419
  • 2
  • 30
  • 37
1
2 3
15 16