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
3
votes
0 answers

What is the cause of io.netty.channel.StacklessClosedChannelException on deplyoment

So I'm developing a JavaFX app and when I run it on IntelliJ it works perfectly without any errors nor warnings but when I deploy it using Jpackage on sending WebSockets it throws the exception io.netty.channel.StacklessClosedChannelException here's…
3
votes
1 answer

Why isn't my JavaFX application showing a web browser?

I have a modular JavaFX application with the following Java code: package webbrowser; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.layout.StackPane; import…
ktm5124
  • 11,861
  • 21
  • 74
  • 119
3
votes
1 answer

jpackage linux creates insufficient desktop file

I just started using jpackage and it is a really great tool. One single step takes a lot of work off my shoulders. The more surprised I am about something that looks hardcoded and cannot be customized? JPackage automatically generates the launcher…
Queeg
  • 7,748
  • 1
  • 16
  • 42
3
votes
1 answer

Java Module-Info 'Uses' Directive (Service Consumption)

I'm using one of the new random generator algorithms (https://openjdk.java.net/jeps/356): RandomGeneratorFactory.of("L128X1024MixRandom").create().nextDouble(); And it works. Except after using jpackage tool (https://openjdk.java.net/jeps/392) I get…
bourne2program
  • 121
  • 1
  • 5
3
votes
1 answer

JPackaged JavaFX + Spring boot does not launch

I am trying to build a JavaFX application using Spring Boot and deploy it with jpackage. When using the javafx-maven-plugin javafx:run command, I can see project launching. But after building it to an *.msi installer, installing and launching the…
Dranna
  • 505
  • 3
  • 15
3
votes
0 answers

Preventing DLL injection in jpackage generated EXE

As the title states, is there a way to prevent DLL injections in jpackage generated binaries? I have created an EXE for a JavaFX application. During security testing of this application, it was noticed that arbitrary DLLs can be loaded during…
Aayush Jain
  • 31
  • 1
  • 3
3
votes
1 answer

Java application runs much slower when packaged as a MacOs app

I've written a Java application that I want to package for the main OSes so that I can provide it as a self-contained installable image. To do this, I use jpackage, with help from the best-named plugin I've come across, The Badass Runtime Plugin…
AndyW
  • 101
  • 7
3
votes
1 answer

How can I JPackage an RPM/PKG/DEB on Windows?

I am attempting to create an executable for Linux systems using JPackage. I have successfully created an executable for windows using this command: jpackage --type msi --name EzQuiz --description "EzQuiz by Benjamin Schreiber" --app-version 1.0…
Ben Schreiber
  • 167
  • 1
  • 1
  • 8
3
votes
0 answers

Missing JavaFX application class when using jPackage

I'm getting the message "Missing JavaFX application class com.ponderwhy.pikeinventory.PikeInventory" after deploying with jPackage. Using AdoptOpenJDK 16, JavaFx-16, WiX 3.11 on Windows 10. My application runs fine when I use the following JVM…
3
votes
1 answer

jpackage creates an installer that hangs

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 should be able to build an installer using jpackage --input C:\MyApp --main-jar MyApp.jar UPDATE: I originally posted that trouble happened…
Jerry Agin
  • 629
  • 1
  • 5
  • 15
3
votes
1 answer

jpackage pkg codesign -- appstore submission errors

I am following mostly the code sign and notarize instructions from this Code signing + notarization using jpackage utility isn't working on macOS i.e going through each .dylib and jars and signing them. Finally sign the whole pkg and notarize. Pkg …
tech_geek
  • 147
  • 2
  • 11
3
votes
1 answer

How to change the window icon of a JPackage app on Windows?

I'm deploying a self-contained application with JPackage. This is how I compile it for Windows: call "%JAVA_HOME%\bin\jpackage" ^ --type %INSTALLER_TYPE% ^ --dest target/installer ^ --input target/installer/input/libs ^ --name Deshopp ^ …
Allan Juan
  • 2,048
  • 1
  • 18
  • 42
3
votes
0 answers

How can I grant a java app packaged with jpackage full disk access on a mac?

I've created a java app that's packaged with jpackage. Compiled and packaged with AdoptOpenJDK 14. After installing on a mac, it needs full disk access to copy files to the /Application directory. Unfortunately, I simply cannot figure out how to do…
Mark Woon
  • 2,046
  • 1
  • 20
  • 26
3
votes
1 answer

What effect does the --copyright flag have in JPackage?

What effect does the --copyright flag have in JPackage? I have included it in my configuration, but do not see it when I install the application built using it (on Windows)
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
3
votes
2 answers

With JPackage or Java how can I remove files created with pre JPackage installer

Previously I used Izpack to install my Java application, and when users want to install a new version they just reinstalled into the same location (C"/Program Files/Jthink/Jaikoz"), this would replace older files with newer files, and there was no…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
1 2
3
15 16