Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 Installation Steps : Setting Environment Variables

Setting Environment Variables
This section describes the environment variables that must be set after the ActiveSpaces installer is run.
TIBCO ActiveSpaces bin and lib Directories
For the operating system to find the ActiveSpaces libraries when an ActiveSpaces application is run, the following paths must be added to the PATH (Windows and UNIX) or LD_LIBRARY_PATH (UNIX) or DYLD_LIBRARY_PATH (OSX) environment variables on machines where ActiveSpaces is installed:
Add the ActiveSpaces bin directory to the PATH on Windows and UNIX
Add the ActiveSpaces lib directory to the PATH on Windows, or the LD_LIBRARY_PATH on UNIX, or the DYLD_LIBRARY_PATH on OSX
Windows example
If ActiveSpaces is installed in C:\tibco\as\2.1:
Add C:\tibco\as\2.1\lib and C:\tibco\as\2.1\bin to the PATH environment variable.
The following Windows command script sets the required environment variables for starting the Admin CLI in a command window.
Example 1 Windows Command File for Setting Environment Variables for the Admin CLI
@echo off
 
set AS_HOME=c:\tibco\as\2.1
set PATH=%AS_HOME%\lib;%AS_HOME%\bin;%PATH%
 
set JAVA_HOME=%DRIVE_C%\Program Files\Java\jdk1.6.0_24
set PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\lib
*I
Make sure that you prepend the AS_HOME\lib PATH setting and the AS_HOME\bin PATH setting to the PATH setting; for example:
UNIX example
If ActiveSpaces is installed in /usr/tibco/as/2.1:
Add /usr/tibco/as/2.1/lib to the LD_LIBRARY_PATH and /usr/tibco/as/2.1/bin to the PATH environment variable.
OSX example
If ActiveSpaces is installed in /usr/tibco/as/2.1:
Add /usr/tibco/as/2.1/lib to the DYLD_LIBRARY_PATH and /usr/tibco/as/2.1/bin to the PATH environment variable.
TIBCO Rendezvous bin and lib Directories
If you want to use TIBCO Rendezvous as the transport for ActiveSpaces, Rendezvous must be installed on each machine running ActiveSpaces, and these paths must be added to the PATH (Windows) or LD_LIBRARY_PATH (UNIX). For example, add:
The Rendezvous bin directory: to the PATH on Windows and UNIX
The Rendezvous lib directory: to the PATH on Windows, or the LD_LIBRARY_PATH on UNIX
Windows example
If TIBCO Rendezvous is installed in C:\tibco\tibrv:
Add C:\tibco\tibrv\lib and C:\tibco\tibrv\bin to the PATH environment variable
UNIX example
If TIBCO Rendezvous is installed in /usr/tibco/tibrv:
Add /usr/tibco/tibrv/lib to the LD_LIBRARY_PATH and/usr/tibco/tibrv/bin to the PATH environment variable
JRE or JDK bin and lib Directories
In order for the operating system to find the Java class libraries when an ActiveSpaces application is run, the bin and lib directories for the JDK or JRE must be included in the PATH environment variable, for example, C:\Program Files\Java\jre6\bin and C:\Program Files\Java\jre6\lib.
New Environment Variables Required
CLASSPATH environment variable
In order for Java ActiveSpaces applications to run, the CLASSPATH variable should include the following JAR files:
All applications require this JAR file to be in the CLASSPATH.
as-admin.jar and antlr-3.2.jar
All applications making use of the Admin object require these JAR files to be in the CLASSPATH.
AS_HOME environment variable
Create a System environment variable called AS_HOME that points to the directory where ActiveSpaces is installed, for instance, C:\tibco\as\2.1 on Windows or /usr/tibco/as/2.1 on UNIX.
JAVA_HOME environment variable
The JAVA_HOME environment variable must be created if it does not already exist. It should point to the top level directory of the Java JDK or JRE, for example, C:\Program Files\Java\jre6.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved