Setting Up the Product Examples

Follow this procedure for each machine on which you will run the GemFire examples:

1. If you have not already done so, install and configure GemFire Enterprise as described in Setting Up GemFire.
2. Download and unzip the examples zip file.

Unzip the GemFire product examples zip to a directory on the machine where you want to run the examples.

Open the file from the dialogue box that appears when you click on the link, or save the file to disk and then double-click it there to open it. Extract the file to the directory in which you want to store the examples.

3. Add the example class directories to your CLASSPATH.

You need these examples subdirectories in your CLASSPATH to run all of the product examples:

  • tutorial/classes
  • helloworld/classes
  • quickstart/classes
  • examples/dist/classes
Example CLASSPATH settings

Unix Bourne and Korn shells (sh, ksh, bash)
In these settings, replace $SamplesDirectory with the directory where you extracted the zip file.

CLASSPATH=$SamplesDirectory/tutorial/classes:$SamplesDirectory/helloworld/classes:$SamplesDirectory/quickstart/classes:$SamplesDirectory/examples/dist/classes:$CLASSPATH;export CLASSPATH

Windows
In these settings, replace %SamplesDirectory% with the directory where you extracted the zip file.

set CLASSPATH=%SamplesDirectory%\tutorial\classes;%SamplesDirectory%\helloworld\classes;%SamplesDirectory%\quickstart\classes;%SamplesDirectory%\examples\dist\classes;%CLASSPATH%

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.