If you have not installed IBM Installation Manager, install IBM Installation Manager.
Use the listAvailablePackages command to list the available packages in the service repository.
You can view the license before you install Java.
When installing IBMs Java using Installation Manager, Java cannot be installed as a stand-alone product. Instead, Java must be included with another supported IBM product, such as WebSphere or IHS web server. Due to this, there are a couple options:
To install Java and another IBM product simultaneously, you will include both products, like this.
/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.BASE.v90_184.108.40.20671205_1311 com.ibm.java.jdk.v8_8.0.5007.20171218_1035 . . .
Or, you can first install WebSphere or IHS.
/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.BASE.v90_220.127.116.1171205_1311 -installationDirectory /opt/IBM/WebSphere/AppServer . . .
And then install Java. In this scenario, -installationDirectory must point to the installation directory that was used when installing WebSphere or IHS.
/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.java.jdk.v8_8.0.5007.20171218_1035 -installationDirectory /opt/IBM/WebSphere/AppServer . . .
Install from IBM HTTP repository
Issue the following command to install Java. Your IBM username and password will be stored in a secure storage file, which is usually located at /var/ibm/InstallationManager/secure_storage. If you have not yet created the secure storage file, you can use the -prompt option to create the secure storage file. Or, you can manually create the secure storage file. The secure storage file will be protected by a master password. If you use the -prompt option, you will need to type in the master password. Or, you can create the master_password.txt file and store the master password in the master_password.txt.
There are a few different repositories that can be used to install Java:
~]# ./imcl com.ibm.java.jdk.v8_8.0.5007.20171218_1035 -repositories http://www.ibm.com/software/repositorymanager/com.ibm.websphere.BASE.v90 -installationDirectory /opt/IBM/WebSphere/AppServer -acceptLicense -showVerboseProgress -prompt or -masterPasswordFile /var/ibm/InstallationManager/master_password.txt
Install from local repository
Installing offering from a local repository is nearly identical to installing from IBM HTTP repository, except you would download the products you want to install from Fix Central or using the Packaging Utility. Download Java JDK. After the packages have been downloaded, you will unzip the packages to a location on your server, such as /tmp/was and /tmp/java. Then, you can use /tmp/was and /tmp/java in the install command.
~]# ./imcl install com.ibm.java.jdk.v8_8.0.5007.20171218_1035 -repositories /tmp/java -installationDirectory /opt/IBM/WebSphere/Java -sharedResourcesDirectory /opt/IBM/IMShared -acceptLicense -showVerboseProgress -prompt or -masterPasswordFile /var/ibm/InstallationManager/master_password.txt
The listInstalledPackages command can be used to list installed packages.
The versionInfo.sh utility can be used to verify that Java was successfully installed.
~]# /opt/IBM/WebSphere/AppServer/bin/versionInfo.sh . . . Installed Product ----------------------------------------------------------------------- Name IBM WebSphere SDK Java Technology Edition (Optional) Version 18.104.22.168 ID IBMJAVA8 . . .