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

Problems creating .EXE with jpackage -problems with jsoup when program is called by EXE, but OK in Intellij

I created with Intellij an application that uses Javafx, Lucene, JDOM and other libraries. On Intellij everything compiled and runs successfully. Now I am about to create an runtime image for Windows using jpackage. The problem is now to add the…
0
votes
2 answers

Packing a Java application with jpackage: Writing to a file does not work

In order to learn how to use jpackage, I have written a small sample application that contains a Swing UI and is supposed to write a log file (this log file only serves as an example for writing to a file that is in the project). First I generate a…
0
votes
1 answer

How to find fakeroot package to lauch jpackage

I've created a .jar with eclipse on ubuntu, java14 and javafx. I wanted to create an application with jpackage. So, I typed in a terminal jpackage --name Test --input . --main-jar Test.jar. I have had the response : Bundler DEB Bundle skipped…
pouce
  • 21
  • 5
0
votes
0 answers

JavaFX application will not open when converted jar to dmg

Hi I've been researching stackoverflow for similar problems to mine. It's 2am night time but still searching. I found one JavaFX app doesn't launch. How can I find out why? but he had a similar problem to me, but not the exact problem. He had a…
0
votes
2 answers

relative path to folder won't work when jpackaged java

so my project is here: https://github.com/Potat-OS1/project_thingo and i started the project from a template. under the champPortrait section is where i'm having my problem. when i run it in the IDE the path works, as i understand it its the…
Potat.OS1
  • 3
  • 3
0
votes
0 answers

LinkageError in Jpackage - unsupportedClassVersionError

I'm back for about the second time this week and third in the past two with more issues. I'm so sorry. Jpackage creates my app image fine, ( i got this msg thru --win-console) but upon running it through cmd, we get here. Error: LinkageError…
0
votes
0 answers

Jpackage issues - Not running

I should preface this by saying I'm a novice who got in way too deep trying to make a Swing app an exe. After reading the docs I've sort of gleaned what the meanings of all the parameters are, but I'm still confused. What I'm trying to achieve is an…
0
votes
1 answer

MacOS app launcher built by jpackage not completing launch

I want to release my educational app (Java / Swing ) to the MacOS, and I'm using JDK 16.0.2 and its jpackage command line tool to build the installer/launcher. In verbose mode, the process seems to be error-free; I get this at the…
pbierre
  • 276
  • 1
  • 8
0
votes
0 answers

Java application with jpackage: Conflict with parallel installed JDK/JRE

I am developing a Java application and distribute it with packaging with jpackage on Windows. I am using the following jpackage command to create the whole application image: jpackage --java-options '-splash:$APPDIR/splash.png' --type app-image -n…
ndbd
  • 2,417
  • 3
  • 23
  • 32
0
votes
1 answer

Jpackage command not adding libraries in exe installer

I'm trying to use Spire.Doc / Aspose.word to manipulate word files in a JavaFx application. When executed in eclipse or using a jar , it works very well but when I make an exe using jpackage command, the app throws java.lang.NoClassDefFoundError:…
Atomos
  • 1
  • 1
0
votes
1 answer

jpackage app won't open even though exe works

I have made an application using jpackage. When I try to open the app nothing happens apart from the icon appearing in the dock (bouncing up and down), and after 1 second it closes itself again. However if I run Asteroids.app > Contents > MacOS >…
Viljan
  • 23
  • 6
0
votes
1 answer

Created .exe from jpackager crashes

I have a JavaFX Project, which I want to export as a dmg and exe. The export as a dmg file for Mac was no problem. But the export as a .exe file for Windows is not working. I created a jar file and I ran jlink. Then I exported the project with…
GregGott
  • 95
  • 9
0
votes
1 answer

How to Add Another Directory (bundle) with jpackage After Installation Java Program

I'm using jpackage to create native Java installer on Windows. And also my app need a JDBC library (example mysql-connector-java-8.0.28.jar) to run the native app to connect the database. I'm using NetBeans to build the app and after build, I saw…
Noobie Cooder
  • 141
  • 1
  • 1
  • 7
0
votes
3 answers

Using jpackage how do I make the installer name different than application name?

I have a Java program that I can turn into an installer exe that makes an app exe jpackage -t exe -i . -n compilerrunner --app-version 1.0 --win-dir-chooser --win-shortcut --main-jar compilerrunner.jar I want the installer exe, to look like…
0
votes
0 answers

Exported JavaFX Application file size is too big

I have my own project(https://github.com/reinvert/CrossStitchConverter) And I always compile the project on eclipse by File-Export-Runnable JAR File-(Library handling)Package required libraries into generated JAR. It works fine, but the jar file…
Reinvert
  • 1
  • 1