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
0
votes
1 answer

How to add dependencies to DEB created by JPackage?

I have a java application that I package with jpackage and receive a debian package. At runtime the application relies on another piece of software being installed, and it comes from another debian package. I want the Ubuntu package manager to…
Queeg
  • 7,748
  • 1
  • 16
  • 42
0
votes
0 answers

Windows recognizes jpackage .exe installer as an virus

So I created a jpackage installer, but there are two problems: -The browser detects it as a virus, when a user downloads it, (picture here ) -Operating system detects it as a virus either, and shows me a smartscreen protection screen. How can I get…
martin
  • 11
  • 1
  • 3
0
votes
1 answer

Deploy a writable properties file in jpackaged Java application

I have a Java client application that I am going to package as a stand-alone application using jpackage. But the application has a Properties file which must be both read and written to by the application. My initial attempts to do this run in the…
Matthew McPeak
  • 17,705
  • 2
  • 27
  • 59
0
votes
0 answers

jpackage not Command 'jpackage' not found, did you mean: command 'package' from deb mailagent Try: sudo apt install

java --version Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on-Dswing.aatext=true openjdk 17.0.2 2022-01-18 LTS OpenJDK Runtime…
Itslogout
  • 7
  • 2
0
votes
1 answer

How to package JavaFX + Spring Boot application via jpackage correctly?

I'm having trouble packaging my project using jpackage by badass jlink plugin. Project contains Spring Boot, which works with JavaFX via FXVeawer. And with Spring Data application works with Database. My build.gradle: plugins { id…
Addm1X
  • 27
  • 7
0
votes
1 answer

Stand alone jpackage generated java app generates ClassNotFoundException for com.mysql.cj.jdbc.Driver

I built a java application with jpackage. The application works within eclipseT. The outcome of jpackage can be installed on windows and it starts. The application use a javafx ui. The app is based on Java 17 und use modules. So far, so good. The…
juerg
  • 381
  • 4
  • 18
0
votes
0 answers

File Associations not working in JPackage

I am encountering a problem with file associations in Java (using the terminal command JPackage for building an executable file). The problem is basically the following: when I try to open a file with my application, the file path is not passed to…
andy_07
  • 21
  • 5
0
votes
1 answer

Java FX Application with Jpackage not work

I've created my Application in JavaFX. Everything works well, so I use the Jpackage to make a installable version of my application in Window. After I install the package, the window computer still ask to install JVM. jpackage -t exe --name…
mana
  • 1,075
  • 1
  • 24
  • 43
0
votes
1 answer

jpackage Error: JavaFX runtime components are missing, and are required to run this application

After creating a jar with "mvn package", I use this command in order to create an installer from the jar: jpackage --verbose --name project_executable_name --input target --main-jar ProjectJAR.jar --main-class com.example.MainClass…
user17575267
0
votes
1 answer

where does exeutable app made by JPackage save its local resources

I chose to put my SQLite database files in local resources and packaged my application using JPackage. The issue is whenever I delete the application from my desktop and reinstall it, the database data don't get deleted (with the deletion of the…
Youssef Idraiss
  • 396
  • 5
  • 19
0
votes
1 answer

Sentry intialization crashes with a NoSuchMethodError trying to find jdk.internal.reflect.Reflection.registerMethodsToFilter

I'm using jpackage (part of jdk14+) to build an MSI for windows installation of my java application. Everything packages and installs fine, but when I go to run the .exe it throws an exception while trying to initialize Sentry. Exception in thread…
hexist
  • 5,151
  • 26
  • 33
0
votes
0 answers

jpackage on windows makes program silently doing nothing

I'm trying to learn to use jpackage, and I can create an installer for a simple program, but the installed program then does nothing. Here is what I did: -make the most standard hello world program package hello; public class World { public static…
Marco Servetto
  • 684
  • 1
  • 5
  • 14
0
votes
1 answer

JPackage doesn't generate working exe and bugs folders

I'm trying to make a portable exe from my jar app using JPackage. I used jdk16 and maven to make the app, the app compiles and runs perfectly. When I tryed to use JPackage something wierd happend, when using -t exe I would sometimes get an exe…
Nemo_64
  • 15
  • 1
  • 5
0
votes
1 answer

Correct options to package dependent classes with jpackage

I'm building an installer on Windows with a few classes in the application jar but with dependencies on logging (logback). This is not a modular application. I'm finding it difficult to get it built properly since the logging dependencies are not…
g00se
  • 3,207
  • 2
  • 5
  • 9
0
votes
1 answer

What is causing this "jpackage does not exist" error?

I'm trying to make an installer from my Gradle + JavaFX project using jpackage but the following error occurs: Execution failed for task ':jpackageImage'. > /home/jonander/.gradle/daemon/6.8/null/bin/jpackage does not exist. This is my…