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 |
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 |
javapackager -signJar |
Digitally signs JAR files and attaches a certificate. |