Thursday 1 June 2017

WebSphere Liberty Profile - Silent Installation

This is a TL;DR; taken from a document that I'm writing on the use of Liberty Collectives and Node.JS runtimes.

This is the bit where I set up and install Java and WLP: -

Starting Point

-rwxr-xr-x. 1 wasadmin wasadmins 116037545 Jun  1 08:42 ibm-java-jre-8.0-3.12-x86_64-archive.bin
-rw-r--r--. 1 wasadmin wasadmins 149840706 Jun  1 08:50 wlp-base-all-17.0.0.1.jar


Create File System for WLP and Java

mkdir /opt/IBM

Create User and Group

groupadd wasadmins
useradd -g wasadmins -d /home/wasadmin wasadmin
echo "passw0rd" | passwd wasadmin --stdin
chown -R wasadmin:wasadmins /opt/IBM


Setup Silent Installation Response File for Java

vi ~/installer.properties

Append: -

INSTALLER_UI=silent
USER_INSTALL_DIR=/opt/IBM/Java
LICENSE_ACCEPTED=TRUE


Install Java

./ibm-java-jre-8.0-3.12-x86_64-archive.bin -i silent -f installer.properties 1>console.txt 2>&1

Validate Java

/opt/IBM/Java/jre/bin/java -version

java version "1.8.0"
Java(TM) SE Runtime Environment (build pxa6480sr3fp12-20160919_01(SR3 FP12))
IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References 20160915_318796 (JIT enabled, AOT enabled)
J9VM - R28_Java8_SR3_20160915_0912_B318796
JIT  - tr.r14.java.green_20160818_122998
GC   - R28_Java8_SR3_20160915_0912_B318796_CMPRSS
J9CL - 20160915_318796)
JCL - 20160914_01 based on Oracle jdk8u101-b13


Setup Path

vi ~/.bashrc

Append: -

JAVA_HOME=/opt/IBM/Java/jre/
PATH=$PATH:$JAVA_HOME/bin


source ~/.bashrc

Validate Java

java -version

java version "1.8.0"
Java(TM) SE Runtime Environment (build pxa6480sr3fp12-20160919_01(SR3 FP12))
IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References 20160915_318796 (JIT enabled, AOT enabled)
J9VM - R28_Java8_SR3_20160915_0912_B318796
JIT  - tr.r14.java.green_20160818_122998
GC   - R28_Java8_SR3_20160915_0912_B318796_CMPRSS
J9CL - 20160915_318796)
JCL - 20160914_01 based on Oracle jdk8u101-b13


Install WLP

java -jar wlp-base-all-17.0.0.1.jar --acceptLicense /opt/IBM

Before you can use, extract, or install IBM WebSphere Application
Server V9.0.0.3, you must accept the terms of IMPORTANT: READ CAREFULLY
and additional license information. Please read the following license
agreements carefully.


The --acceptLicense argument was found. This indicates that you have
accepted the terms of the license agreement.


Extracting files to /opt/IBM/wlp
Successfully extracted all product files.

Setup Server Environment File for WLP

vi /opt/IBM/wlp/etc/server.env

Append: -

# Specify WLP working directory
WLP_USER_DIR=/opt/IBM/work
# Specify Java Home
JAVA_HOME=/opt/IBM/Java/jre/


Validate WLP

/opt/IBM/wlp/bin/server version

WebSphere Application Server 17.0.0.1 (1.0.16.cl170120170227-0220) on IBM J9 VM, version pxa6480sr3fp12-20160919_01 (SR3 FP12) (en_GB)

2 comments:

umamaheswar said...

How to uninstall java and liberty

Dave Hay said...

HI Umamaheswar

Thanks for the comment.

In my view, if you've installed Java using the archive e.g. ibm-java-jre-8.0-5.30-i386-archive.bin etc. then there's no need to uninstall it, you can merely delete the directory into which you installed Java e.g. /opt/IBM/Java.

Similarly, you can simply remove WLP in the same way.

As an example, if you've got Java installed here: -

/opt/IBM/Java/

and WLP installed here: -

/opt/IBM/wlp/

you can remove both: -

rm -Rf /opt/IBM/Java/
rm -Rf /opt/IBM/wlp/

remembering to backup/copy any required WLP files e.g. configuration, binaries, logs, secrets etc.

HtH, Dave

Visual Studio Code - Wow 🙀

Why did I not know that I can merely hit [cmd] [p]  to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub...