GemStone® GemFireTM Enterprise
Environment Settings for Programming Examples

Before running the programming examples, make sure your environment is set according to the specifications listed here.

The "setenv" script referred to below, and the general environment settings, are documented in the Programming chapter of the GemFire Enterprise Developer's Guide. The commands and settings listed are generally Unix-centric. Adjust as necessary for other operating systems.

  1. From the GemFire installation directory, source the appropriate bin/setenv script for your system. Refer to the Developer's Guide if you need help with this step.

  2. Set the environment variables, JAVA_HOME and GF_JAVA_HOME, to a VM that satisfies the requirements listed in the installation chapter of the GemFire Enterprise System Administrator's Guide. The JAVA_HOME setting is for your applications, and GF_JAVA_HOME is for the GemFire scripts. Some installations of GemFire include a JRE. If you have a $GEMFIRE/jre directory, the GemFire scripts will automatically use it and you could also use it for your JAVA_HOME setting. If you have no $GEMFIRE/jre directory (as with the .zip file download of the product), then you must have an appropriate VM installed on your system and you must set JAVA_HOME and GF_JAVA_HOME to point to it.

  3. Add $JAVA_HOME/bin to your PATH.

  4. Add $GEMFIRE/examples/dist/classes to your CLASSPATH.

  5. If you are running the GemFire JMX examples that use JMX APIs, add $GEMFIRE/lib/mx4j.jar and $GEMFIRE/lib/mx4j-remote.jar to your CLASSPATH.

  6. If you are running cacheRunner in secure mode with security properties then add $GEMFIRE/lib/gfSecurityImpl.jar to your CLASSPATH.