---
title: "Java"
url: "https://docs.yugabyte.com/stable/develop/drivers-orms/java/"
---

# Java

Java drivers and ORMs support for YugabyteDB.

## Supported projects

The following projects can be used to implement Java applications using the YugabyteDB YSQL and YCQL APIs.

Driver Documentation and Guides Latest Driver Version Supported YugabyteDB Version 

YugabyteDB JDBC Driver \[Recommended] [Documentation](/stable/develop/drivers-orms/java/yugabyte-jdbc/ "Documentation")  
[Reference](/stable/develop/drivers-orms/java/yugabyte-jdbc-reference/ "Reference")  
[Blog](https://dev.to/yugabyte/yugabytedb-jdbc-smart-driver-for-proxyless-halb-2k8a/ "Blog") [42.7.3-yb-7](https://mvnrepository.com/artifact/com.yugabyte/jdbc-yugabytedb/42.7.3-yb-7 "42.7.3-yb-7")  
(Supports Java 21) 2.8 and above 

YugabyteDB R2DBC Driver [Documentation](/stable/develop/drivers-orms/java/yb-r2dbc/ "Documentation") [1.1.0-yb-2](https://mvnrepository.com/artifact/com.yugabyte/r2dbc-postgresql "1.1.0-yb-2") 2.18 and above 

PostgreSQL JDBC Driver [Documentation](/stable/develop/drivers-orms/java/postgres-jdbc/ "Documentation")  
[Reference](/stable/develop/drivers-orms/java/postgres-jdbc-reference/ "Reference") [42.7.3](https://mvnrepository.com/artifact/org.postgresql/postgresql/42.7.3 "42.7.3") 2.4 and above 

Vert.x Pg Client [Documentation](/stable/develop/drivers-orms/java/ysql-vertx-pg-client/ "Documentation") [4.3.2](https://mvnrepository.com/artifact/io.vertx/vertx-pg-client/4.3.2 "4.3.2") 

YugabyteDB YCQL (3.10) Driver [Documentation](/stable/develop/drivers-orms/java/ycql "Documentation") [3.10.3-yb-3](https://mvnrepository.com/artifact/com.yugabyte/cassandra-driver-core/3.10.3-yb-3 "3.10.3-yb-3") 

YugabyteDB YCQL (4.19) Driver [Documentation](/stable/develop/drivers-orms/java/ycql-4.x "Documentation") [4.19.0-yb-1](https://mvnrepository.com/artifact/com.yugabyte/java-driver-core/4.19.0-yb-1 "4.19.0-yb-1")

Projects Documentation and Guides Example Apps 

Hibernate ORM [Documentation](/stable/develop/drivers-orms/java/hibernate/ "Documentation")  
[Hello World](/stable/develop/drivers-orms/orms/java/ysql-hibernate/ "Hello World")  
[Blog](https://www.yugabyte.com/blog/run-the-rest-version-of-spring-petclinic-with-angular-and-distributed-sql-on-gke/ "Blog")  
[Hibernate ORM App](https://github.com/yugabyte/orm-examples/tree/master/java/hibernate/ "Hibernate ORM App") 

Spring Data JPA [Documentation](/stable/integrations/spring-framework/sd-jpa/ "Documentation")  
[Hello World](/stable/develop/drivers-orms/orms/java/ysql-spring-data/ "Hello World")  
[Blog](https://www.yugabyte.com/blog/run-the-rest-version-of-spring-petclinic-with-angular-and-distributed-sql-on-gke/ "Blog") [Spring Data JPA App](https://github.com/yugabyte/orm-examples/tree/master/java/spring/ "Spring Data JPA App") 

Ebean ORM [Documentation](/stable/develop/drivers-orms/java/ebean/ "Documentation")  
[Hello World](/stable/develop/drivers-orms/orms/java/ysql-ebean/ "Hello World")  
[Blog](https://www.yugabyte.com/blog/ebean-orm-yugabytedb/ "Blog") [Ebean ORM App](https://github.com/yugabyte/orm-examples/tree/master/java/ebean/ "Ebean ORM App") 

MyBatis ORM [Documentation](/stable/develop/drivers-orms/java/mybatis/ "Documentation")  
[Hello World](/stable/develop/drivers-orms/orms/java/ysql-mybatis/ "Hello World") [MyBatis ORM App](https://github.com/yugabyte/orm-examples/tree/master/java/mybatis/ "MyBatis ORM App") 

Spring Data YugabyteDB [Documentation](/stable/integrations/spring-framework/sdyb/ "Documentation")  
[Blog](https://www.yugabyte.com/blog/spring-data-yugabytedb-getting-started/ "Blog") [Spring Data YugabyteDB Sample App](https://github.com/yugabyte/spring-data-yugabytedb-example/ "Spring Data YugabyteDB Sample App")

Learn how to establish a connection to a YugabyteDB database and begin basic CRUD operations by referring to [Connect an app](/stable/develop/drivers-orms/java/yugabyte-jdbc/ "Connect an app") or [Use an ORM](/stable/develop/drivers-orms/java/hibernate/ "Use an ORM").

## Prerequisites

To develop Java driver applications for YugabyteDB, you need the following:

- **Java Development Kit (JDK)**
  
  Install JDK 8 or later. JDK installers for Linux and macOS can be downloaded from [Oracle](http://jdk.java.net/ "Oracle"), [Adoptium (OpenJDK)](https://adoptium.net/ "Adoptium (OpenJDK)"), or [Azul Systems (OpenJDK)](https://www.azul.com/downloads/?package=jdk "Azul Systems (OpenJDK)"). Homebrew users on macOS can install using `brew install openjdk`.
- **Create a Java project**
  
  You can create Java projects using Maven or Gradle software project management tools. For ease-of-use, use an integrated development environment (IDE) such as IntelliJ IDEA or Eclipse IDE to configure Maven or Gradle to build and run your project.
  
  If you are not using an IDE, see [Building Maven](https://maven.apache.org/guides/development/guide-building-maven.html "Building Maven") or [Creating New Gradle Projects](https://docs.gradle.org/current/samples/sample_building_java_applications.html "Creating New Gradle Projects") for more information on how to set up a Java project.
  
  1. Create a project called "DriverDemo".
     
     ```sh
     $ mvn archetype:generate \
          -DgroupId=com.yugabyte \
          -DartifactId=DriverDemo \
          -DarchetypeArtifactId=maven-archetype-quickstart \
          -DinteractiveMode=false
     
     $ cd DriverDemo
     ```
  2. Open the pom.xml file in a text editor and add the following below the `<url>` element.
     
     ```xml
     <properties>
       <maven.compiler.source>1.8</maven.compiler.source>
       <maven.compiler.target>1.8</maven.compiler.target>
     </properties>
     ```
     
     If you're using Java 11, it should be:
     
     ```xml
      <properties>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
      </properties>
     ```
- **YugabyteDB cluster**
  
  - Create a free cluster on YugabyteDB Aeon. Refer to [Use a cloud cluster](/stable/quick-start-yugabytedb-managed/ "Use a cloud cluster"). Note that YugabyteDB Aeon requires SSL.
  - Alternatively, set up a standalone YugabyteDB cluster by following the steps in [Install YugabyteDB](/stable/quick-start/macos/ "Install YugabyteDB").

## Next step

[Connect an app](/stable/develop/drivers-orms/java/yugabyte-jdbc/ "Connect an app")
