REEF is available on both Linux and Windows and supports developing applications in the Java or C# programming languages.
Cloning the repository
Committers
Code Block |
---|
language | powershell |
---|
title | Cloning the REEF repository for committers |
---|
|
git clone https://git-wip-us.apache.org/repos/asf/reef.git |
Users
Code Block |
---|
language | powershell |
---|
title | Cloning the REEF repository for everyone else |
---|
|
git clone git://git.apache.org/reef.git |
Setting the Runtime Java Environment
The version of Java used to compile REEF is controlled in the Maven pom.xml file in the build plugins section as the maven-compiler-plugin artifact identifier. The JAVA_HOME environment variable to the correct Java installation directory for your operating system and java version in order to run REEF applications. On Ubuntu Linux, the current active version of Java is controlled via links from /usr/bin via the update-alternatives command thus the correct setting is given in the code block below. REEF will concatenate the appropriate path to find the appropriate executable files such as /usr/bin/java.
Code Block |
---|
language | bash |
---|
title | bash script to set JAVA_HOME |
---|
|
export JAVA_HOME=/usr |
On Windows the JAVA_HOME environment variable is typically set by the Java installer to $SYSTEM_DRIVE\Program Files\Java\jdk[version number]. You can examine the value by entering the following command in a powerShell console window.
Code Block |
---|
language | powershell |
---|
title | PowerShell command to view JAVA_HOME |
---|
|
$env:JAVA_HOME |
Compiling
Java build instructions
C# build instructions