Before running the programming examples, make sure your environment is set according to the specifications listed here.
The general environment settings referred to below are documented in the Programming with GemFire Enterprise chapter of the GemFire Enterprise Developer's Guide. The commands and settings listed are generally Unix-centric, so adjust as necessary for other operating systems.
bin, defaultConfigs, docs, examples, lib, and quickstart. Refer to the GemFire Enterprise Developer's Guide if you need help with this step.GF_JAVA to point to the JAVA executable in your Java JDK or JRE runtime environment. The GF_JAVA setting is for the GemFire scripts. You must have a compatible JDK or JRE installed on your system and you must set GF_JAVA to point to the JAVA executable in it. You can download the appropriate JDK or JRE from http://java.sun.com.
These are example GF_JAVA configurations. In these examples, yourJRE or yourJDK points to the top-level JRE or JDK directory.
Solaris®, Linux®, and AIX® Bourne and Korn shells (sh, ksh, bash)
If just the JRE runtime is installed:
GF_JAVA=yourJRE/bin/java;export GF_JAVAIf the full Java JDK is installed:
GF_JAVA=yourJDK/jre/bin/java;export GF_JAVA
Windows®
If just the JRE runtime is installed:
set GF_JAVA=yourJRE/bin/java.exeIf the full Java JDK is installed:
set GF_JAVA=yourJDK/jre/bin/java.exe
See the Product Installation chapter of the GemFire Enterprise System Administrator's Guide for details.
/bin to
your PATH.
/examples/dist/classes to
your CLASSPATH.C:\GemFireXX/examples/dist/classes, where GemFireXX is the GemFire top-level product directory.
/lib/gemfire.jar to the CLASSPATH.
/lib/antlr.jar to the CLASSPATH. healthMonitor example),
add both of these to CLASSPATH:
/lib/mx4j.jar/lib/mx4j-remote.jarclientServerConfigs example, include this setting:
/lib/gfSecurityImpl.jar to CLASSPATH.