How to make 64-bit TIBCO Hawk work with 32-bit TIBCO Hawk Adapter for Tivoli Software 4.9.0 on Linux?

How to make 64-bit TIBCO Hawk work with 32-bit TIBCO Hawk Adapter for Tivoli Software 4.9.0 on Linux?

book

Article ID: KB0089275

calendar_today

Updated On:

Products Versions
TIBCO Hawk -
Not Applicable -

Description

Description:
TIBCO Hawk Adapter for Tivoli Software 4.9.0 only supports 32-bit products. If you are using 64-bit TIBCO products, you need to download the 32-bit JRE for the TIBCO Hawk Adapter for Tivoli Software 4.9.0.. This will allow 32-bit Hawk Adapter for Tivoli to work with other Tibco 64-bit products. If you are using 32-bit TIBCO products, there should not be a problem.

Symptoms:
[Required for Known Issue]
#./starttibhawktivoli
#Exception in thread "main" java.lang.NoClassDefFoundError: COM/TIBCO/hawk/custom/tivoli/Tivoli
Caused by: java.lang.ClassNotFoundException: COM.TIBCO.hawk.custom.tivoli.Tivoli
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: COM.TIBCO.hawk.custom.tivoli.Tivoli.  Program will exit.

Cause:
32-bit TIBCO Hawk Adapter for Tivoli Software 4.9.0 is not compatible with 64-bit JRE.

Issue/Introduction

How to make 64-bit TIBCO Hawk work with 32-bit TIBCO Hawk Adapter for Tivoli Software 4.9.0 on Linux?

Resolution

1). If you install 64-bit Tibco products on your 64-bit machine, download and install the 32-bit JRE 1.6.0 on your Linux box, such as /home/tibco/jre1.6.0_45.

2). Run the following commands according to your environment: (If there is no EMS installed, make <hawk>/4.9 as the EMS root).


export RV_ROOT=/home/tibco/tibco/tibrv/8.4
export HAWK_ROOT=/home/tibco/tibco/hawk/4.9
export JRE_ROOT=/home/tibco/jre1.6.0_45
export EMS_ROOT=/home/tibco/tibco/ems/7.0

3). Backup and edit starttibhawktivoli to add <hawk>/adapters/tivoli/bin in LIBPATH, LD_LIBRARY_PATH and SHLIB_PATH as follows:


# Add RV to LD_LIBRARY_PATH and SHLIB_PATH.

LD_LIBRARY_PATH=/home/tibco/tibco/hawk/4.9/adapters/tivoli/bin:$RV_ROOT/lib:$HAWK_ROOT/bin:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
SHLIB_PATH=/home/tibco/tibco/hawk/4.9/adapters/tivoli/bin:$RV_ROOT/lib:$HAWK_ROOT/bin:$SHLIB_PATH
export SHLIB_PATH
LIBPATH=/home/tibco/tibco/hawk/4.9/adapters/tivoli/bin:$RV_ROOT/lib:$HAWK_ROOT/bin:$LIBPATH
export LIBPATH

4). Restart starttibhawktivoli.