Java archive file extraction options
We can install Liberty by extracting a Java archive (JAR) file. By running a self-extracting JAR file containing the distribution image, we can install Liberty and we are ready to create a server. We can also install programming model extensions by extracting a JAR file.
Syntax
The command syntax is as follows:
- java -jar archive-file-name.jar [Options] [install location]
...where archive-file-name.jar is the name of the archive file we are extracting.
Note:
- If we do not specify any options, the distribution image is extracted using the interactive installer.
- If we do not specify an installation location, the default target directory is the location of the archive file.
Options
The following options are available for the extraction command:
--help | Display a short explanation about how to use the command and a list of available options |
--acceptLicense | Automatically indicate acceptance of license terms and conditions |
--verbose | Display detailed information during archive extraction |
--viewLicenseAgreement | View license agreement |
--viewLicenseInfo | View license information |
Usage
The following examples demonstrate the correct syntax:
java -jar myarchivefile.jar
java -jar myarchivefile.jar --help
java -jar myarchivefile.jar --acceptLicense C:\Liberty-install
java -jar myarchivefile.jar --verbose
java -jar myarchivefile.jar --viewLicenseAgreement
java -jar myarchivefile.jar --viewLicenseInfo