All pages
Powered by GitBook
1 of 1

Loading...

Application Development with MariaDB Connector/R2DBC (Native API)

Application development with MariaDB Connector/R2DBC native API covers building Java projects with Maven or JAR, adding the connector to the classpath, and running compiled applications.

Methods for building projects with MariaDB Connector/R2DBC vary depending on the installation method you use.

Building with Maven

When building your Java application with Maven, the build downloads and installs the relevant JAR dependencies, and compiles your project:

Build the package:

$ mvn package

Run the application:

$ java -jar target/app.jar

Building with JAR

  1. To build your Java application from a download:

  2. Add your application and the JAR for MariaDB Connector/R2DBC to the Java CLASSPATH:

  1. Compile your application:

  1. Execute the Java class:

This page is: Copyright © 2026 MariaDB. All rights reserved.

$ export CLASSPATH="/path/to/application:/path/to/r2dbc-mariadb-1.4.1.jar"
$ javac App.java
$ java App
spinner