---
title: "Prerequisites"
description: "Install Docker, Java 17, and Maven to set up your environment for the Aerospike Graph Java tutorial."
---

# Prerequisites

> For the complete documentation index see: [llms.txt](https://aerospike.com/docs/llms.txt)
> 
> All documentation pages available in markdown.

This tutorial requires the Aerospike Graph repository and three dependencies. Before proceeding, install the following:

## Required

Docker

Docker runs the Aerospike Graph Service and Aerospike Database layers in pre-configured containers. Download and install Docker Desktop from [the Docker website](https://www.docker.com/).

After installation, verify Docker is running:

Terminal window

```shell
docker --version
```

You should see output similar to:

```plaintext
Docker version 24.0.0, build abc1234
```

Java

This tutorial uses Java to connect to AGS and execute Gremlin queries. Install [Java SE 17](https://www.oracle.com/java/technologies/downloads/).

After installation, verify Java is available:

Terminal window

```shell
java -version
```

You should see output similar to:

```plaintext
java version "17.0.2" 2022-01-18 LTS

Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)

Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)
```

Maven

This tutorial uses Maven to manage dependencies and build the project. Install Maven from [maven.apache.org](https://maven.apache.org/download.cgi).

After installation, verify Maven is available:

Terminal window

```shell
mvn -version
```

You should see output similar to:

```plaintext
Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584)

Maven home: /usr/local/Cellar/maven/3.9.0/libexec

Java version: 17.0.2, vendor: Oracle Corporation
```

This tutorial uses the Apache TinkerPop Gremlin driver for Java (`gremlin-driver`) to communicate with AGS. AGS requires TinkerPop 3.7.x client drivers. TinkerPop 3.8.x and 4.0.x are not compatible. Maven will automatically download this library and its dependencies when you build the project.

## Optional

Git

While not strictly required, Git makes it easier to clone the repository. If you do not have Git installed, you can download the repository as a ZIP file from GitHub instead.

Install Git from [git-scm.com](https://git-scm.com/).

::: undefined
-   I’ve installed Docker.
-   I’ve installed Java SE 17.
-   I’ve installed Maven.
:::

[Previous  
Tutorial: Graph and Java basics](https://aerospike.com/docs/graph/graph-and-java-basics) [Next  
Run the example](https://aerospike.com/docs/graph/graph-and-java-basics/step/1/part/1/run-example)