Questions tagged [javapackager]

The Java Packager tool can be used to compile, package, sign, and deploy Java and JavaFX applications from the command line. It can be used as an alternative to an Ant task or building the applications in an IDE.

The Java Packager tool generates executable Java/JavaFX applications for Windows, Linux, and macOS platforms. It can also generate installers for those platforms in various formats including DMG or PKG on macOS, MSI on Windows, and RPM or DEB on Linux. Also supports generating packages for distribution on the Mac App Store including jar signing.

Documentation for the command is available here: https://docs.oracle.com/javase/9/tools/javapackager.htm#JSWOR719

Questions related to usage of the command, command options, or errors obtained when using it are welcome.

74 questions
1
vote
0 answers

Running a JavaFX application on Mac

I've built a JavaFX application and am packaging it up natively. I currently have Windows and Linux running really well and want to do Mac next. Actually, I don't just want to see Mac running, I want to get onto the Mac App Store. I've seen some…
Sander Smith
  • 1,371
  • 4
  • 20
  • 30
1
vote
1 answer

add folder to bundle when building mac installer using javapackager

I've used javapackager to create installer for my java program, in order to run into mac OS X. There is some files and a single folder which needs to be bundle while performing the bundalation process from javapackager. My programs folder structure…
Dhiren Hamal
  • 874
  • 1
  • 12
  • 31
1
vote
0 answers

System.exit() status code not working when compiled into native app

I've created a JavaFX 2 app of which I'm adding a command-line mode (so that it can be run in a batch mode from nightly scripts). For this to be effective, I want to set the exit status to indicate errors. I'm doing this with this code: if…
Buddy
  • 10,874
  • 5
  • 41
  • 58
0
votes
1 answer

Application built by jarbundler fails to launch

I am building a Java 9 application for MacOS using Javapackager, via ant. The build process succeeds without complaint, but the resulting application does not launch. However, when I run the executable within the generated application bundle, it…
dbp
  • 91
  • 1
  • 12
0
votes
1 answer

How to use javapackager to create executable file for my code?

I saw this stack overflow post to know how to create executable files from java source , where it says to use javapackager he also says that it is included with Java JDK but I dont have any clue of how to use it. I read this oracle documentation…
Pam Ix
  • 458
  • 4
  • 17
0
votes
0 answers

MacOS running jar from Applications/app.app ends with incorrect path error during loading .fxml

I have created an java application that i would like to convert to MacOS .app. I managed to run java packager against my jar file, which created .pkg file for me. After installation app is starting (preloader) but it end with .fxml file load problem…
wolffiq
  • 1
  • 2
0
votes
0 answers

Alternative to default package with Java 9 and higher

I have an application which calls a third party dll. The dll is written so that the calls to it include the fully qualified name of the class doing the calling. This module has worked for a number of years using versions of Java earlier than…
Elliott
  • 5,523
  • 10
  • 48
  • 87
0
votes
1 answer

Java self-contained package wait for completion

I have an application that I need to be a self-contained app, installable, on computers that may not have Java. I'm using javapackager command to create an EXE that can be sent out to the users, containing all the parts needed. The app, in a simple…
josh.trow
  • 4,861
  • 20
  • 31
0
votes
1 answer

self-contained javafx application fail to run in ubuntu : issue with GLIBCXX_3.4.21

I built a small app using javafx ( very basic stuff ) compile using javac : OK ( oracle jdk 1.8.0_201-b09 ) crated the jar : OK : the jar works fine with java -jar packaged the app using javapackager javapackager \ -deploy \ -daemon \ …
Atla ntun
  • 11
  • 3
0
votes
0 answers

How can I update a custom Java module into JRE image

I have a Java desktop application that is a valid module with its module-info.java file. I'm also using javapackager command to create a custom JRE runtime image and then use Inno Setup to create a Windows installer for my application. Since my…
Marquinio
  • 4,601
  • 13
  • 45
  • 68
0
votes
1 answer

How to set DMG window and background size using javapackager ant task

After long struggle I managed to generate (using Ant) on MacOSX (Yosemite) a DMG (of modular JavaFX application that deploys to *.app folder) even with custom icons of the app and DMG volume (both stored as *.icns files in build's package/macosx…
Cromax
  • 1,822
  • 1
  • 23
  • 35
0
votes
2 answers

Missing first character of file path in javapackager ant task on Windows

I've got a build.xml script that builds my Java application on MacOs just fine. On Windows it fails with: Exception: java.io.FileNotFoundException: E:\ogamp-all-platforms-v2.2.4\jar\gluegen-rt-android-natives-android-armv6.jar (The system cannot…
nyholku
  • 456
  • 3
  • 15
0
votes
1 answer

Building Jar using javapackager from command

I'm trying to create a jar file using javapackager from command prompt. For that I have a simple java project. Only one class is there and inside the class a main method, which prints a message. javapackager -createjar -appclass com.simple.Test…
Aragon
  • 143
  • 2
  • 9
0
votes
1 answer

Can javapackager package Windows app from a Mac?

Can javapackager (https://docs.oracle.com/javase/9/tools/javapackager.htm#JSWOR719) package Windows app from a Mac, or does one need to actually install Windows?
user1615898
  • 1,185
  • 1
  • 10
  • 20
0
votes
1 answer

Javapackager - include Java executable

In the configuration of javafx-maven-plugin, I use the bundleArguments to include the jdk.shell into my package. jdk.jshell
cbm64
  • 1,059
  • 2
  • 12
  • 24