Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress User Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

2.1 Configuring Your Environment

Before using HydraExpress, configure your environment. This includes:

These steps are discussed in more detail in the following sections. Note that these steps need to be followed every time you open a new command window.

2.1.1 Set Your Path Environment Variable

First, ensure that your C++ compiler is set up in your environment and available in the PATH environment variable. See your compiler documentation for information.

HydraExpress also requires your PATH environment variable to point to the bin directory of your JRE. To test whether your PATH points to bin, type javac at a command prompt. If your PATH environment variable points to bin, the command returns Java usage help.

If the above test fails, add the location of the JRE bin directory to your PATH:

Windows set PATH=JRE-location\bin;%PATH%
UNIX/Linux shell PATH=JRE-location/bin:$PATH; export PATH


The command for setting environment variables may vary depending on your UNIX shell.

2.1.2 Set RWSF_HOME (UNIX/Linux only)

Set the environment variable RWSF_HOME equal to the absolute path to the directory where you installed HydraExpress.

UNIX/Linux shell RWSF_HOME=path-to-HydraExpress-install; export RWSF_HOME

2.1.3 Run rwsfvars

The scripts rwsfvars.bat and rwsfvars are located in the root of your HydraExpress installation. Use the script appropriate to your system.

Windows rwsfvars.bat
UNIX/Linux shell . rwsfvars or source rwsfvars

2.1.4 SourcePro C++

If you use SourcePro, you need to manually set the environment variable RWSP_HOME to your SourcePro installation, as follows:

Windows set RWSP_HOME=path-to-SourcePro-install
UNIX/Linux shell RWSP_HOME=path-to-SourcePro-install; export RWSP_HOME

2.1.5 Testing Your Installation

Once you have set your environment, you can test your HydraExpress installation in a couple of easy ways.

2.1.5.1 Run an Example

To test your build environment, generate code from an example:

  1. In your command window set with the HydraExpress environment, change to the examples\webservices\HelloWorld directory.

  2. Enter rwsfgen example-project.xml.

If the code generator succeeds, your build environment is working.

For information on how to complete the example, see the readme.txt file in the example directory.

2.1.5.2 View the Default Agent Page

To check that the HydraExpress Agent is working properly:

  1. In the same command window, enter rwsfserver start.

    On Windows, a separate command window appears to act as the Agent console. It should show a series of lines related to starting the Agent, ending with:

    INFO: Starting 'HTTPS (HTTP/1.1)' connector...

  2. In a web browser, enter the URL http://localhost:8090.

You should see a page that looks like this:

The examples demonstrate various uses of HydraExpress servlets.



Previous fileTop of DocumentContentsIndex pageNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.