FreeKB - How to install Java for WebSphere on the command line (imcl)
How to install Java for WebSphere on the command line (imcl)

Home > Search > How-to

If you have not installed IBM Installation Manager, install IBM Installation Manager

Install from IBM HTTP repository

When installing Java via the command line, IBM recommends installing Java from the IBM HTTP repository instead of from a local repository, as this ensures that the latest installation files are used during the install.

List the available packages. The -prompt option is used to get a prompt to provide your IBM username and password.

~]# cd /opt/IBM/InstallationManager/eclipse/tools/
~]# ./imcl listAvailablePackages -repositories -prompt
. . .


You can view the license before you install Java.

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.

~]# ./imcl
  -installationDirectory /opt/IBM/WebSphere/AppServer
  -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 UtilityDownload 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
  -repositories /tmp/java  
  -installationDirectory /opt/IBM/WebSphere/Java
  -sharedResourcesDirectory /opt/IBM/IMShared
  -prompt or -masterPasswordFile /var/ibm/InstallationManager/master_password.txt


Post installation

The listInstalledPackages command can be used to list installed packages.

The utility can be used to verify that Java was successfully installed.

~]# /opt/IBM/WebSphere/AppServer/bin/
. . .
Installed Product
Name              IBM WebSphere SDK Java Technology Edition (Optional)
ID                IBMJAVA8
. . .


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter in the box below so that we can be sure you are a human.