
If -runtime-image is not specified, jpackage will run jlink to create the runtime image using options: -strip-debug, -no-header-files, -no-man-pages, and -strip-native-commands. Path of the predefined runtime image that will be copied into the application image (absolute path or relative to the current directory). Pass on -bind-services option to jlink (which will link in service provider modules and their dependences). module-path or -p module path.Ī File.pathSeparator separated list of paths.Įach path is either a directory of modules or the path to a modular jar, and is absolute or relative to the current directory. If not specified, either just the main module (if -module is specified), or the default set of modules (if -main-jar is specified) are used. This module list, along with the main module (if specified) will be passed to jlink as the -add-module argument. Options for creating the runtime image: -add-modules module name Ī comma (",") separated list of modules to add. Print the product version to the output stream and exit. If not specified, a temporary directory will be created and removed upon the task completion. If specified, the temp dir will not be removed upon the task completion and must be removed manually. Path of a new or empty directory used to create temporary files (absolute path or relative to the current directory). (absolute path or relative to the current directory). Path where generated output file is placedĭefaults to the current working directory. Print the usage text with a list and description of each valid option for the current platform to the output stream, and exit. description description stringĭescription of the application. Version of the application and/or package` -copyright copyright stringĬopyright for the application. If this option is not specified a platform dependent default type will be created. jpackage Options Generic Options: filename The tool will have options that allow packaged applications to be customized in various ways.

Each format must be built on the platform it runs on, there is no cross-platform support.

#Get info mac icon file type windows#
It will be able to produce a native package in a platform-specific format, such as an exe on Windows or a dmg on macOS. The jpackage tool will take as input a Java application and a Java run-time image, and produce a Java application image that includes all the necessary dependencies. Jpackage options Command-line options separated by spaces. Jpackage - tool for packaging self-contained Java applications. Platform dependent options for creating the application package:.Options for creating the application package:.Platform dependent option for creating the application launcher:.Options for creating the application launcher(s):.Options for creating the application image:.Options for creating the runtime image:.The jpackage Command The jpackage Command
