The SpringSource dm Server uses the JAVA_HOME
environment variable to locate the java
executable. Configure this environment variable to point to the home directory of the Java 5 or Java 6 installation on your computer.
As a convenience it is recommended that you create an environment variable that points
to the SpringSource dm Server installation directory. Note that the SpringSource dm Server does not require that
such an environment variable has been set. This variable may have any name of your
choosing. The SpringSource dm Server’s documentation assumes that the variable is named
SERVER_HOME
.
Edit the .profile
file in your home directory to
add the SERVER_HOME
and JAVA_HOME
environment variables. For
example, if you installed into /opt
:
export SERVER_HOME=/opt/springsource-dm-server-2.0.0.M5/ export JAVA_HOME=/user/java/jdk1.6.0_17 export PATH=$JAVA_HOME/bin:$PATH
This section shows how to add SERVER_HOME
as a system variable on Windows. Follow the same procedure to add or update the JAVA_HOME
environment variable.
From the Start menu, open the Control Panel and double-click on ‘System’.
Click the ‘Advanced’ tab and select ‘Environment Variables’. Next, click the ‘Edit’ button in the ‘System Variables’ section.
This will display the ‘Edit System Variable’ window. Enter
SERVER_HOME
as the ‘Variable name’ and
the installation directory as the ‘Variable value’. Click OK.