> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Java

> Use the Openlayer Java SDK to interact with the Openlayer platform

You can use the `openlayer` Java SDK to interact with the Openlayer platform.

## Install

You can install the `openlayer` Java SDK from **Gradle** or **Maven**.

```java theme={null}
/*
  For Gradle, add the following dependency to your build.gradle and replace with
  the version number you want to use from:
  - https://github.com/openlayer-ai/openlayer-java/releases/latest
*/
implementation("com.openlayer.api:openlayer-java:0.1.0-alpha.2")
```

```xml theme={null}
<!--
  For Maven, add the following dependency to your POM and replace with the
  version number you want to use from:
  - https://github.com/openlayer-ai/openlayer-java/releases/latest
-->
<dependency>
  <groupId>com.openlayer.api</groupId>
  <artifactId>openlayer-java</artifactId>
  <version>0.1.0-alpha.2</version>
</dependency>
```

## Learn more

To learn more about the `openlayer` Java SDK, check out the GitHub repository:

<Card title="SDK GitHub repository" icon="github" iconType="duotone" href="https://github.com/openlayer-ai/openlayer-java">
  Check out the source code of the Java SDK.
</Card>
