FazBrowse Wikipedia Viewer | Main Page |
Search Wikipedia:
|
Viewing: https://en.wikipedia.org/wiki/Java_packager

Java packager

The Java Packager tool is a tool included in the JDK which allows to package Java applications from the command line. It is an alternative to using other packaging tools like Apache Ant.

Note that the Java Packager does not automatically produce a Jar file. Many other formats are available, including native executable formats for the platform.

The Java Packager tool also manipulates modules (added in Java 9), allowing for example to package a module and all the modules it depends on.

Example

edit

For example, the following command will create a outputJar.jar file with the content of the classesDir directory, and will set the myPackager.MainClass as the executable class of the jar file:

"JEP 275: Modular Java Application Packaging". Oracle Corporation. Retrieved 2017-07-31.

External links

edit

View original on Wikipedia | Back | FazBrowse Home