Documentation Contents
Java Platform, Standard Edition Deployment Guide
Contents    Previous    Next

9 The Java Packager Tool

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.


Note:

The Java Packager tool is not available for the Solaris platform.

You can access reference information about the Java Packager tool in the Tools Guide for Windows or the Tools Guide for Solaris, Linux, or OS X. If you have set an environment variable for the path to the tool in your JDK installation, you can also enter javapackager at the command line for information.


Tip:

For Windows installations, add the path to the javapackager command to the PATH environment variable. The javapackager.jar file is located in the bin directory of the JDK installation.

The javapackager command has several component task commands, described in Table 9-1. The command-line options depend on which task command you are using, as described in the javapackager reference documentation for Windows or for Solaris, Linux, or OS X.

Table 9-1 Task Commands in the Java Packager Tool

Task Command Description

javapackager -createbss

Converts a CSS file into binary form

javapackager -createjar

Produces a JAR file according to other parameters specified as options.

javapackager -deploy

Assembles the application package for redistribution. By default, the deploy task generates the base application package. It can also generate self-contained application packages, if requested.

javapackager -makeall

Compiles source code and combines the -createjar and -deploy commands, with simplified options.

javapackager -signJar

Digitally signs JAR files and attaches a certificate.


Contents    Previous    Next

Oracle and/or its affiliates Copyright © 1993, 2017, Oracle and/or its affiliates. All rights reserved.
Contact Us