...
Anchor | ||||
---|---|---|---|---|
|
With JDK 1.8 or a more recent version installed, set the JAVA_HOME environment variable to the JDK installation.
Install Gradle, version 2.3 or a more recent version.
Obtain and unpack the source from the Releases page at http://geode.incubatorFollow the installation instructions at https://cwiki.apache.org/confluence/. Within the directory containing the unpacked source:
$ gradle build installDist -Dskip.tests=true
display/GEODE/Building+and+Running+Geode+from+Source to install Geode.
With a path that contains the bin
directory of the installation, start Start a locator and server:
$ cd gemfire-assembly/build/install/apache-geode
$ ./bin/gfsh
gfsh> start locator --name=locator
...
Compile and run HelloWorld.java
. The classpath should include gemfiregeode-core-dependencies.jar
.
Code Block | ||
---|---|---|
| ||
$ javac -cp /some/path/incubator-geode/gemfiregeode-assembly/build/install/apache-geode/lib/gemfiregeode-core-dependencies.jar HelloWorld.java $ java -cp .:/some/path/incubator-geode/gemfiregeode-assembly/build/install/apache-geode/lib/gemfire-coregeode-dependencies.jar HelloWorld |
...