This topic applies to WebSphere Application Server Liberty V8.5.5.9 and earlier. For the latest Liberty topics, see the WebSphere Application Server Liberty documentation.
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.
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