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

Packaging java applicaition in Windows 10, open JDK 11

I am migrating my development environment from a PC with Windows 7 to one with Windows 10. I can no longer run the packaging to create the executable bundle. The error I get is the following: Bundler Windows Application Image skipped because of a…
1
vote
2 answers

Android - Is that OK to use two words as package name?

I am building an Android App. Is that OK to use two words as package name? For example: com.myapp com.puzzlegame com.dingdong What is the reason behind using three words as a package name? For…
Stack Overflow
  • 1
  • 5
  • 23
  • 51
1
vote
1 answer

Installing javapackager on Ubuntu

I'm using Netbeans 11 and I've created a barebone test Maven Java 13 project that I cannot build/run. I haven't used Maven before. After fiddling around some basic dependencies, I ended up with an error indicating that the javafxpackager command…
Silviu G
  • 1,241
  • 10
  • 31
1
vote
1 answer

Add folder to bundle when build mac installer using javapackager

I have JavaFx ShowTime.jar and config folder. To run the software, the config folder needs to be in a same directory as ShowTime.jar. In side the config folder, there are two folders : preferences and plugins. I can bundle the config folder with…
BiteAgain
  • 13
  • 2
1
vote
0 answers

How to create self-contained java applications?

What I'm trying to do is to build a java swing app that's compatible on both Windows and macOS. Exporting an executable jar file and running it on another computer with JRE on it works perfectly, but the problem lies with computers that don't have…
user10516073
1
vote
0 answers

How to incorporate unnamed modules when using javapackager

Trying to incorporate an unnamed module jar into another project. When we run the javapackager command we are getting below error: [exec] Creating app bundle: CoderDx in C:\workspace\DLL3MDebug\dist [exec] Module artificialmedgui.coderdx does not…
Marquinio
  • 4,601
  • 13
  • 45
  • 68
1
vote
2 answers

How to enforce packaged java app to run as admin

I'm trying to package a java application using java packager tool ( I'm new to this tool ) the app itself has to make some calls internally ( using the java process api ) This works fine if the java application is started with admin privileges. for…
Atla ntun
  • 11
  • 3
1
vote
1 answer

Is there a project to support cross platform builds with javapackager

Javapackager is the 'official' tool to package Java applications as (more or less) native applications (.EXE .app .rpm etc). It is rather nice but requires building the distributables on every platform you want to support. This is rather tiresome…
nyholku
  • 456
  • 3
  • 15
1
vote
0 answers

Set JAVA_HOME from javapackager to all child applications

I have a question about javapackager, I'm newbie of this feature. I need to create an exe (and app for OSX) to be distributed. I used javapackager to create a bundle with JRE included and I create my setup, all seems to work. The problem is that if…
emish89
  • 696
  • 8
  • 25
1
vote
1 answer

Javapackager - NoSuchFileException while copying libraries JDK 9

When I use the javapacker command, I get a NoSuchFileException when it should copy the libraries to the app folder. I'm running the following command: javapackager -deploy -nosign -v -native image -name test -appclass test.Test -srcdir…
tobain
  • 646
  • 8
  • 13
1
vote
0 answers

Pin To Taskbar with Javapackager

When I create a javapackager native bundle of my JavaFX application via the amazing fxlauncher I get it to launch with proper application icon (package/window/..icon @ 256x256) but when I pin it to taskbar it reverts to the grey Java Icon. You can…
Wulf
  • 393
  • 2
  • 10
1
vote
2 answers

Customizing the Resources directory of an .app bundle with Javapackager

On macOS, I am using Javapackager to make an Application.app bundle (called a disk image) from my Application.jar Java archive: javapackager \ -deploy \ -native image \ -srcfiles Application.jar \ -outdir dist \ -outfile Application \ …
Géry Ogam
  • 6,336
  • 4
  • 38
  • 67
1
vote
2 answers

Can javapackager generate just .app instead of .dmg?

We are updating our Mac support from Java 1.6 to Java 1.8. Part of this is switching to using javapackager to generate the .app bundle. The problem is that it always puts the .app into a .dmg. I need the .app separate so we can build our full…
CasaDelGato
  • 1,263
  • 1
  • 12
  • 29
1
vote
2 answers

JavaFX packager - can the name of the package icon be specified?

For a couple of years, I have been releasing updates to a modest app on a yearly basis -- just before the summer swim league starts up. In the past, I have specified the various icons (volume, app, etc.) by placing them in the package/macosx/…
pfurbacher
  • 1,789
  • 3
  • 15
  • 23
1
vote
1 answer

How to convert Jar file to DMG using Javapackager 8, el Capitan

I have copied this example from here, but I am having trouble making to work. mkdir -p package/macosx cp you_icon_app.icns package/macosx jdk=$(/usr/libexec/java_home) $jdk/bin/javapackager -version $jdk/bin/javapackager -deploy -native dmg \ …
JavaLatte
  • 378
  • 5
  • 18