Smilehouse Workspace HOWTO Articles

Installing Workspace on Linux - Setting Environment Variables

Before you can start the Workspace installer, you must create $WORKSPACE_HOME directory(usually this is /home/workspace) and have the following environment variables set correctly.

Gives the Workspace installation directory.
For example /home/workspce

The Java class path. CLASSPATH must include at least the JDBC driver.
For example $CATALINA_HOME/shared/lib/jdbc-driver.jar
or /usr/local/tomcat5/shared/lib/jdbc-driver.jar (if the CATALINA_HOME is /usr/local/tomcat5)

The variables set to profile (recommended)

Add the following lines to the file /etc/profile (use your own values instead of example values):
export WORKSPACE_HOME=/home/workspace
export CLASSPATH=$CATALINA_HOME/shared/lib/jdbc-driver.jar (jdbc-driver.jar assumed to be the name of the JDBC driver)

export WORKSPACE_HOME=/home/workspace
You must add this line also to /etc/init.d/tomcat5 file because of sudo's new security features.

You can edit the /etc/profile in Terminal for example with command: sudo nano /etc/profile

Log out from Linux and log in again. Now you should have the variables in use.
You can test it in Terminal with command echo $variable.
For example echo $WORKSPACE_HOME

If variables are ok you can skip the next section "The variables set using a Terminal" and proceed to next page.

The variables set using a Terminal

If you don't want to set variables to profile you can also use the Terminal and set the variables every time you need them.

Open Terminal.
Type (use your own values instead of example values):
export WORKSPACE_HOME=/home/workspce   (Press Enter)
export CLASSPATH=$CATALINA_HOME/shared/lib/jdbc-driver.jar   (Press Enter)(jdbc-driver.jar assumed to be the name of the JDBC driver)

You can see the value of set value with command echo $variable.
For example echo $WORKSPACE_HOME
Don't close the Terminal. You need it in next stage. It is recommended to use the same Terminal for setting variables and for installation.

Now you have the necessary platform softwares installed and required environment variables set and you can run the Workspace installer.

< Previous page     Page 2 / 3     Next page >

^ Contents
<< Back to HOWTO index