---
type: docs
title: "Dapr Java SDK"
linkTitle: "Java"
weight: 1000
description: Java SDK packages for developing Dapr applications
cascade:
github_repo: https://github.com/dapr/java-sdk
github_subdir: daprdocs/content/en/java-sdk-docs
path_base_for_github_subdir: content/en/developing-applications/sdks/java/
github_branch: master
---
Dapr offers a variety of packages to help with the development of Java applications. Using them you can create Java clients, servers, and virtual actors with Dapr.
## Prerequisites
- [Dapr CLI]({{< ref install-dapr-cli.md >}}) installed
- Initialized [Dapr environment]({{< ref install-dapr-selfhost.md >}})
- JDK 11 or above - the published jars are compatible with Java 8:
- [AdoptOpenJDK 11 - LTS](https://adoptopenjdk.net/)
- [Oracle's JDK 15](https://www.oracle.com/java/technologies/javase-downloads.html)
- [Oracle's JDK 11 - LTS](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html)
- [OpenJDK](https://openjdk.java.net/)
- Install one of the following build tools for Java:
- [Maven 3.x](https://maven.apache.org/install.html)
- [Gradle 6.x](https://gradle.org/install/)
## Import Dapr's Java SDK
Next, import the Java SDK packages to get started. Select your preferred build tool to learn how to import.
{{< tabs Maven Gradle >}}
{{% codetab %}}
For a Maven project, add the following to your `pom.xml` file:
```xml