CORBA 2.3.3 Programmer's Guide for C++ (NonStop CORBA 2.3.3+)

OSS Environment Variables and the env.sh File
A shell implements environment variables that you can set and display. Processes started from the OSS
shell can access exported environment variables. For example, NonStop CORBA processes and
utilities use environment variables when you configure the system, develop a component, or run an
application. The $NSD_ROOT/etc/env.sh file stores shell commands that set environment variables.
The env.sh shell script must be executed during shell initialization by using .profile, or by using
the dot (.) command to execute the env.sh shell script in the current shell. If you log on only for
NonStop CORBA work, it is often easier to set the environment variables using .profile. However, if
you use many application environments, it may be easier to execute the env.sh script.
A subset of the environment variables set in the env.sh file are relevant for compiling and building
NonStop CORBA applications:
> export NSD_ROOT=/usr/tandem/nsdoms
> export JAVA_HOME=/usr/tandem/java
> add_define =_SRL_01 class=map file=$NSD_SRL_SUBVOL.NSDSRL
> export CLASSPATH=๎€.:$CLASSPATH:$NSD_ROOT/idl/nsdidl.jar:
$NSD_ROOT/lib/jorb.jar:$NSD_ROOT/lib/JTS.jar๎€
> export PATH=๎€$PATH:$NSD_ROOT/bin:$COMP_ROOT/usr/lib:$JAVA_HOME/bin๎€
$NSD_ROOT designates the root directory where NonStop CORBA files reside. This guide sometimes
refers to directory names relative to $NSD_ROOT; in these cases, the notation $NSD_ROOT means your
setting of the NSD_ROOT variable.
JAVA_HOME designates the root directory where NonStop Server for Java files reside. The jorb.jar
and JTS.jar files reside in the $NSD_ROOT/lib directory. To add them to the CLASSPATH use the
env.sh script.
The add_define sets a Guardian define from OSS to point to the NonStop CORBA SRL. Guardian
uses this define to associate an executable with an SRL when the executable runs.
CLASSPATH is an environment variable that tells the JVM and where to find the class libraries,
including user-defined class libraries.
PATH specifies the order in which to search directories for a command typed at the osh prompt.
OSS Development and Debugging Tools
You use the following OSS commands and utilities to develop your application:
make
This utility helps you build and maintain an application that consists of multiple, interdependent
modules. You use a file, called Makefile by default, to describe the dependencies among program