Environment variables

The PureWeb installation adds PUREWEB_HOME and PUREWEB_LIBS to the environment variables. On Windows, the PureWeb server also requires JAVA_HOME.

Other environment variables may be needed, depending on which operating system and platform you are using for your service and your client. For instance a Flex client will look for FLEX_HOME in the system variables, while an Android client will expect the path to the platform tools in the Path variable.


On Windows

On Windows, you will need to set system variables, as well as values in the Path variable.

How to access the environment variables dialog on Windows varies depending on which version of the operating system you are running. If unsure, check the documentation for your operating system.

System variables

In the Environment Variables window, check that the relevant entries exist under System variables:

  • PUREWEB_HOME must point to: [install_path]\Server
  • PUREWEB_LIBS must point to: [install_path]\SDK\Redistributable\Libs
  • JAVA_HOME must point to the path of version 1.8
  • FLEX_HOME (if applicable) must point to the path of version 4.15 of the Flex SDK
  • ANT_HOME (if applicable) must point to the path of version 1.8.1 of Ant

Path variable

For most of the system variables above, an entry must also be added to the Path variable.

In addition, if developing an Android client, you must add your Android tools to the Path variable.

  1. In the list of system variables, select the Path variable.
  2. Click the Edit... button.
  3. In the Variable value string, add the applicable paths if they are missing:
    • Path to JAVA_HOME (%JAVA_HOME%\bin;)

    • Path to ANT_HOME (%ANT_HOME%\bin;)
    • Path to FLEX_HOME (%FLEX_HOME%\bin;)
    • Path to your Android tools, for example: C:\sdk\tools;
    • Path to your Android platform tools, for example: C:\sdk\platform-tools;
  4. Click OK to save your changes.

Every entry in the Path system variable must be separated by a semi-colon. A reboot may be required for the changes to take effect.


On Linux

Use the echo command to check that the relevant entries exist in the system variables:

  • PUREWEB_HOME must point to: [install_path]/Server
  • PUREWEB_LIBS must point to: [install_path]/SDK/Redistributable/Libs
  • FLEX_HOME (if applicable) must point to the path of version 4.15 of the Flex SDK