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

unable to make module-based jar with javapackager

I am new to javapackager and Java 9, and am working through the examples in the javapackager reference, with the first example shown below: Example 1 - Using the -createjar Command javapackager -createjar -appclass package.ClassName -srcdir…
Phil Freihofner
  • 7,645
  • 1
  • 20
  • 41
0
votes
1 answer

Java 10 executable won't execute after installation

I have a weird problem - I have a javafx program that I compile and package using maven (for windows I use Inno setup to create a setup package). After upgrading from Java 8 to Java 10 (updating the plugins in the pom.xml file and updating the…
FunkSoulBrother
  • 2,057
  • 18
  • 27
0
votes
1 answer

How do I access MSI public properties from my application?

I'm using Wix via javafxpackager to build an MSI installer for my Java (8) app. When installing it, I can pass command line attributes, such as: msiexec /i app.msi FOO=BAR How do I go about accessing the value of FOO from my own application? I…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
0
votes
1 answer

How can I trace what a javapackager-based app does when it is started on macOS?

I'm written a Java-based application for macOS created using Oracle's javapackager from Java 8. It worked perfectly for months until something changed, possibly due to a recent Java update, and now when I rebuild the application, the result exits…
mhucka
  • 2,143
  • 26
  • 41
0
votes
1 answer

How to set custom icon for javafx native package icon on Windows using javapackager

I have tried setting icon using -Bicon argument using javapackager command but no luck. If i am not giving any argument then it is showing message like this "add package/windows/ to the classpath to customize".Where am i supposed to add .ico file…
0
votes
1 answer

How to give permission to write Application folder when building a pkg with javapackager

I built a .pkg from a .jar file with javapackager tool. It works well and the JRE is installed as well as my .jar and the program start like it should. The program is installed in Application folder (on a mac of course) and run well. But it doesn't…
0
votes
2 answers

FXLauncher - How to run in headless mode with native installers?

I have a Java FX Project building with Maven and use the FXLauncher https://github.com/edvin/fxlauncher to enable auto updating the application. Native installers are created using the javapackager…
bj03rnv0ss
  • 81
  • 1
  • 3
0
votes
1 answer

How do you escape spaces or quotes in javapackager's jvmProperties

I'm using exec-maven-plugin to run javapackager from java 8 to bundle a javafx application and the system properties need to contain a space in the value. When I use -BjvmProperties=log_path="%LOCALAPPDATA%/ERMS/Desktop Alerts/" I…
TheCycoONE
  • 186
  • 2
  • 15
0
votes
1 answer

Javapackager deploy IOException on second time

i noticed that i can not deploy a JavaFX application with javapackager two times without closing the IDE / commandline. I want to create a native image of my application on a Windows 10 machine. After the second deploy I get Exception:…
Joey
  • 37
  • 4
0
votes
1 answer

Finding the relative path with javapackager -BlicenseFile=

I'm having trouble understanding why javapackager -deploy -native installer -BlicenseFile=license.rtf [...] command will not find the file license.rtf. The license.rtf file is in the root of the JAR. The packager builds the native installers when…
0
votes
1 answer

javapackager OSX code sign fail

I have a Java app that I wish to distribute through the App store: there seems to be a problem signing the app. I am using JDK 1.8.0_77, JavaPackager 8.0 and OSX 10.11.4. As I understand it, Oracle and Apple are playing cat and mouse (not sure who…
JavaLatte
  • 378
  • 5
  • 18
0
votes
1 answer

Java app deployment and installer parameters

I am using javapackager for making installer from .jar. I need to give some params to my installer(splash screen icon, remove version from app name etc), that can't be given directly by javapackager. Instead javapackager has an paramfile option, but…
0
votes
1 answer

Adding a desktop icon for a JavaFX native packaged app

I have a JavaFX app that I'm doing native packaging with. I'm packaging the app for Windows using the InnoSetup 5+ approach. How can I set up the installer so that it creates a desktop icon for the app? Thanks. Update: I'm not sure why this has…
Jon Onstott
  • 13,499
  • 16
  • 80
  • 133
-1
votes
1 answer

create 32 bit using 64 bit netbeans javapackager

i have a java swing application made using netbeans (jdk1.8.0_111) jre1.8.0_111 pavapckager to create exe file application has some library's When i package i get a 64bit installer using javapackager which is expected. I am trying to create a…
Dwayne Patel
  • 315
  • 2
  • 13
1 2 3 4
5