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

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Java SDK for Solana

> Learn how to interact with Solana using the Java SDK (sava-software/sava).

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://github.com/sava-software/anchor-src-gen)
with your idl to produce a Java compatible client.

## Installation

Sava is published to Maven Central and needs JDK 25 or later. Add `sava-core`
and `sava-rpc`, replacing `25.13.3` with the
[latest release](https://central.sonatype.com/artifact/software.sava/sava-core)
if there's a newer one. Maven and Gradle fetch its dependencies, including
`software.sava:json-iterator`, from Maven Central, so no extra repository or
access token is needed.

### Maven

```xml pom.xml
<properties>
    <maven.compiler.release>25</maven.compiler.release>
</properties>

<dependencies>
    <dependency>
        <groupId>software.sava</groupId>
        <artifactId>sava-core</artifactId>
        <version>25.13.3</version>
    </dependency>
    <dependency>
        <groupId>software.sava</groupId>
        <artifactId>sava-rpc</artifactId>
        <version>25.13.3</version>
    </dependency>
</dependencies>
```

### Gradle

```groovy build.gradle
repositories {
  mavenCentral()
}

java {
  toolchain {
    languageVersion = JavaLanguageVersion.of(25)
  }
}

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

## More Documentation

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