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

Database error connection after building my JavaFX application with jpackage

I'm working on a JavaFX Project with a MySQL database (AWS). When I launch my project from Intellij it works perfectly but when I try to export, install and launch my application with jpackage and my build.gradle, I obtain a window with the…
guiguie34
  • 33
  • 6
0
votes
2 answers

Jpackage problem running Server on Win10 what could I be doing wrong?

I am a complete newbie when it comes to the finer points of java packaging. I have written a TCP Data Server using Java-15 via jdk-15 that works quite happily when running under VSCode. I want to distribute it as MRS_Server.exe hopefully without…
Milk Round
  • 97
  • 7
0
votes
1 answer

JPackage: encoding of parameters (Windows)

I have generated a Windows executable for my Java application using jpackage (Java 14, OpenJDK). It works fine, but there is a last glitch that troubles me: The application is associated with files with a certain suffix. On double clicking such a…
Bernd Moos
  • 39
  • 2
0
votes
1 answer

Jpackage with modular application difficulties to create installer

I tried to create an installer for my java fx app but it's not working. I use a jar for the first try. The installer was created but the application didn't launched. I figured it was the method for non modular application. I tried the modular…
cilies38
  • 69
  • 1
  • 8
0
votes
1 answer

JPackage- Where should I put resources folder for my Windows app image?

In a application I made, I put my resources files to a folder(named YoutubeAudioAutoDownloader-resources) and made sure it worked when i put the folder next to .jar file of my app. And When I use jpackage to make a exe installer with following cmd…
eugene
  • 9
  • 6
0
votes
1 answer

JPackage (incubator) and SQLite database problem

I could use some help again, out of ideas. :( I am making JavaFX application that will use SQLite database. OpenJDK 14 with OpenJFX14 is used. In my Eclipse all is working perfectly. I tried for test to make installer with JPackage and that worked…
0
votes
0 answers

Shipping a Gluon mobile application with Java 14

Following this question Gluon Mobile project does not work with gradle 6, I want to know how to ship an application that uses gluon mobile and Java 14. From what I read, gluon mobile only supports Java 14 if I use GraalVM with the client plugin…
Mark
  • 2,167
  • 4
  • 32
  • 64
0
votes
1 answer

Why does my java logging go to console as well as file

I configure my application to use a logging class rather than the logging.properties file in the jre conf folder using -Djava.util.logging.config.class=com.jthink.songkong.logging.StandardLogging And it works, except that I notice that information…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
0
votes
1 answer

Exporting JavaFX to runnable jar is not working

my code works fine inside eclipse. i am using xubuntu. including the packages (selecting the appropriate radio box during exporting) doesn't fix the problem. here's what i get when i java -jar toast.jar Graphics Device initialization failed for : …
GDGDJKJ
  • 209
  • 1
  • 7
0
votes
1 answer

Issues getting jpackage to run on a Mac Catalina 10.15.5

I'm attempting to bundle my Java app into a .dmg file. The plan is to sign and notarize my app for distribution on my website https://strides.co.nz. I have downloaded Java 14 and have successfully created a path on bash profile. Some java commands…
0
votes
1 answer

Can you use Java JPackage to create own Windows installer without using its way of running application

Background, I currently use Izpack for my Windows installer, I bundle a java runtime and use winrun4j as a wrapper both for the installation and the actual program once installed. It worked for a long time but there are a number of problems with the…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
0
votes
2 answers

How can I prompt users to grant read/write permission to my program

I've made a lovely computer program in Java, equipped with handy jpackage installers, and I would love to share it with all of the world in a user-friendly manner. As part of its design, my program writes the user's custom settings to a file in the…
0
votes
1 answer

problem creating windows package using jpackage in windows 10?

I am using openjdk 14.0.1 i have been following the tutorial https://openjfx.io/openjfx-docs/#install-javafx Following the tutorial for Runtime images Modular from CLI i have successfully created the runtime image using jlink. The created runtime…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
1 answer

Observed service module not included in jpackage

I use GluonHQ's backport of jpackager for the JDK 11, and running it with the --bind-services argument: jpackager create-installer -o installer --name "Demo App" --class net.clementlevallois.monitor.Controller --module net.clementlevallois.monitor…
seinecle
  • 10,118
  • 14
  • 61
  • 120
0
votes
1 answer

ClassNotFoundException when launching an installed executable created with jpackage

My process for generating the MSI installer is as follows. Run mvn install to generate Example-1.0-SNAPSHOT-jar-with-dependencies.jar. Run windows-executable.bat to generate Example-1.0.0.msi. Install Example-1.0.0.msi. Go to the install directory,…
Valkryst
  • 101
  • 1
  • 3
1 2 3
15
16