To define the CLASSPATH environment variable for Linux
- Issue an export command for CLASSPATH and specify
the directories where you have stored the Java runtime libraries (from
the PATH statement), the Java help files, and the OSA/SF GUI code
that you transferred. For example, you might issue the following command
with these definitions:
export CLASSPATH=/usr/osajavagui/ioajava.jar:/usr/java/jh1.1.3/javahelp/lib/jh.jar - To verify if the variable is set correctly, issue the following
command:
You can update the .bash_profile so that you do not need to retype the export CLASSPATH command each type that you log on. You update the file depending on how you log on:echo $CLASSPATH- If you log on as root, update the file in /root:
/root/.bash_profile - If you log on as a user, update the file in the /home/userid directory,
where userid is the id of the user. Edit the
file and add the export command to the bottom of the file. You might
need to create the /home/userid directory
and the .bash_profile file if they do not exist.
Update the attributes to make the file executable:
chmod +x.bash_profile
- If you log on as root, update the file in /root: