Archive file extraction options
We can install the Liberty profile by extracting an archive file. By running a self-extracting archive file containing the distribution image, we can install the Liberty profile and be ready create a server.
Syntax
Syntax:
java -jar archive-file-name.jar [Options] [install location]
where archive-file-name.jar is the name of the archive file we are extracting.
- 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-profile-install java -jar myarchivefile.jar --verbose java -jar myarchivefile.jar --viewLicenseAgreement java -jar myarchivefile.jar --viewLicenseInfo
Parent topic:Install the Liberty profile by extracting an archive file