---
title: Java SDK
description:
  Learn how to interact with Solana using the Java SDK (sava-software/sava).
h1: Java SDK for Solana
---

There's a [Java SDK](https://sava.software/welcome) built by
[Sava Engineering](https://sava.engineering/) that supports most functions to
interact with Solana. If you're using Anchor for your Solana programs, you will
be able to use [anchor-src-gen](https://sava.software/utilities/anchor-src-gen)
with your idl to produce a Java compatible client.

## Installation

### Maven

```xml title="pom.xml"
<dependencies>
    <dependency>
        <groupId>software.sava</groupId>
        <artifactId>sava-core</artifactId>
        <version>VERSION</version>
    </dependency>
    <dependency>
        <groupId>software.sava</groupId>
        <artifactId>sava-rpc</artifactId>
        <version>VERSION</version>
    </dependency>
</dependencies>

<repositories>
  <repository>
      <id>gpr-sava</id>
      <name>sava</name>
      <url>https://maven.pkg.github.com/sava-software/sava</url>
  </repository>
  <repository>
      <id>gpr-json-iterator</id>
      <name>json-iterator</name>
      <url>https://maven.pkg.github.com/comodal/json-iterator</url>
  </repository>
</repositories>
```

```xml title="settings.xml"
<settings>
  <servers>
    <server>
        <id>gpr-sava</id>
        <username>GITHUB_USERNAME</username>
        <password>GITHUB_PERSONAL_ACCESS_TOKEN</password>
    </server>
    <server>
        <id>gpr-json-iterator</id>
        <username>GITHUB_USERNAME</username>
        <password>GITHUB_PERSONAL_ACCESS_TOKEN</password>
    </server>
  </servers>
</settings>
```

### Gradle

```bash title="build.gradle"
repositories {
  maven {
    url = "https://maven.pkg.github.com/sava-software/sava"
    credentials {
      username = GITHUB_USERNAME
      password = GITHUB_PERSONAL_ACCESS_TOKEN
    }
  }
  maven {
    url = "https://maven.pkg.github.com/comodal/json-iterator"
    credentials {
      username = GITHUB_USERNAME
      password = GITHUB_PERSONAL_ACCESS_TOKEN
    }
  }
}

dependencies {
  implementation "software.sava:sava-core:$VERSION"
  implementation "software.sava:sava-rpc:$VERSION"
}
```

## More Documentation

Please visit the [Sava Software documentation](https://sava.software/welcome)
for more information on using this Java SDK with Solana.
