Resolution: Description:
============
For TIBCO Hawk Adapter for Tivoli Software 4.9.0, TIBCO only released the 32-bit version for Windows and Linux OS. But customers are using the 64-bit Tibco production with 64-bit OS.
To make this work, do the following.
Environment:
===========
TIBCO Hawk Software 4.9.0 64-bit.
TIBCO Hawk Adapter for Tivoli Software 4.9.0
Windows 64-bit machine.
Linux 64-bit machine.
Symptoms:
========
[tibco@mtlemsadmqa01 bin]$ ./starttibhawktivoli
[tibco@mtlemsadmqa01 bin]$ 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:
=====
This error message indicates that the JVM can not find the class COM/TIBCO/hawk/custom/tivoli/Tivoli because the Tivoli bin folder was not added to the system path.
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 machine.
2). Run the following commands according to your environment: (If there is no EMS installed, put <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). Bakcup and edit the script 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). Start starttibhawktivoli .