The packaging tool jpackage
enables you to generate installable packages for modular and non-modular Java applications. Platform-specific packages for Linux, macOS and Windows provide your users with a familiar way to install and launch your applications.
- Packaging Tool For Mac Computers
- Packaging Tool For Mac Pro
- Application Packaging For Mac Os
- Packaging Tool For Mac Os
- Mac Tools Website
Note:
Thejpackage
tool is included in the JDK as an incubator module named At MAC Packaging we offer full-service government and mil spec packaging services and custom commercial packaging and export solutions. Contact us to learn more about our services or to request a free estimate. Gemini, Suite E-4 Tempe Arizona Give Us a Call. Mac Papers has the latest technology from leading suppliers for every step of the packaging process, from single-function machines to full-line integrated systems. You can rely on customized automation solutions from our experienced engineers and the best in ongoing local equipment support and service from Mac Papers’ own certified technicians. Choose from our selection of packaging tools, including over 100 products in a wide range of styles and sizes. In stock and ready to ship. Offering more than 100 shades of professional quality cosmetics for All Ages, All Races, and All Genders. Enjoy free shipping and returns on all orders. Get the best deals on Mac Tools Automotive Hand Tools when you shop the largest online selection at eBay.com. Free shipping on many items. New Mac Tools Hydraulic In-Line Flaring Tool Kit. $15.00 shipping. Mac Tool 3/8 drive Flex Head Ratchet XR1890 18”inches! $15.00 shipping.
jdk.incubator.jpackage
. As a feature delivered in an incubator module, the tool's command line options, application layout, and other exported interfaces are not guaranteed to be stable. The jdk.incubator.jpackage
module is not resolved by default, and produces a warning when it is resolved. A warning is also issued when jpackage
is run. For information about incubator modules, see JEP 11: Incubator Modules. The simplest form of packaging takes a pre-built Java application as input and generates an installable package in a platform-dependent default format. The packaging tool generates a runtime for your application using the jlink
command.
For applications that require more advanced capabilities, command line options are available for features such as the following:
- Provide a custom icon
- Install the application in a specific location
- Specify JVM options and application arguments to be used when launching the application
- Set file associations to launch the application when an associated file type is opened
- Launch the application from a platform-specific menu group
- Set up multiple launchers for the application
- Sign the bundle (macOS only)
For a description of jpackage
and its options, see The jpackage Command in the Java Development Kit Tool Specifications.
Topics:
Packaging Tool For Mac Computers
Packaging Pre-Reqs
Application packages must be built on the target platform. The system used for packaging must contain the application, a JDK, and software needed by the packaging tool.
To package your application for multiple platforms, you must run the packaging tool on each platform. If you want more than one format for a platform, you must run the tool once for each format.
The following platforms and formats are supported with the required software:
Linux:
deb
,rpm
:For Red Hat Linux, the rpm-build package is required.
For Ubuntu Linux, the fakeroot package is required.
macOS:
pkg
,app
in admg
Xcode command line tools are required when the
--mac-sign
option is used to request that the package be signed, and when the--icon
option is used to customize the DMG image.Windows:
exe
,msi
WiX 3.0 or later is required.
Application Preparation
To package your application, you must first build it and create the necessary JAR or module files. Resources needed by your application must also be available on the system used for packaging.
The following application-related information and resources are used for packaging:
- JAR or module files for the application
- Application metadata, for example, name, version, description, copyright, license file
- Installation options, for example, shortcut, menu group, additional launchers, file associations
- Launch options, for example, application arguments, JVM options
As part of the packaging process, an application image based on the files in the input directory is created. This image is described in Generated Application Image. To test your application before creating an installable package, use the --type app-image
option to create only the application image.
Generated Application Image
The packaging tool creates an application image based on the input to the tool.
The following example shows the application image created for a simple Hello World application for each platform. Files that are considered implementation details are subject to change and are not shown.
Linux:
macOS:
Windows:
Packaging Tool For Mac Pro
The application image generated by the tool works for most applications. However, you can make changes before packaging the image for distribution, if needed.
Java Runtime Requirements
To eliminate the need for users to install a Java runtime, one is packaged with your applications. The packaging tool generates a runtime image based on the packages or modules that your application needs.
Application Packaging For Mac Os
If no Java runtime image is passed to the packaging tool, then jpackage
, uses the jlink
tool to create a runtime for the application. Runtime images created by the packaging tool do not contain debug symbols, the usual JDK commands, man pages, or the src.zip
file.
Packaging Tool For Mac Os
For non-modular applications composed of JAR files, the generated runtime image contains the same set of JDK modules that is provided to class-path applications in the unnamed module by the regular
java
launcher. It doesn't include the available service providers, but these can be added using the--bind-services
option for thejpackage
tool. To add additional modules, use the--add-modules
option for thejpackage
tool.For modular applications composed of modular JAR files and JMOD files, the generated runtime image contains the application's main module and the transitive closure of all of its dependencies. It doesn't include the available service providers, but these can be added using the
--bind-services
option for thejpackage
tool. To add additional modules, use the--add-modules
option.
Mac Tools Website
The runtime image generated by the tool works for most applications. However, you can create a custom runtime to package with your application, if needed.