Java archive file extraction options
You can install Liberty by extracting a Java archive (JAR) file. By running a self-extracting JAR file that contains the distribution image, you can install Liberty and you are ready to create a server. You 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 you are extracting.
Note:
- If you do not specify any options, the distribution image is extracted by using the interactive installer.
- If you 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