> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/connectors/mariadb-connector-r2dbc/using-the-native-r2dbc-api-of-mariadb-connector-r2dbc/application-development-with-mariadb-connector-r2dbc-native-api.md).

# Application Development with MariaDB Connector/R2DBC (Native API)

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:

```bash
$ mvn package
```

Run the application:

```bash
$ 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:

```bash
$ export CLASSPATH="/path/to/application:/path/to/r2dbc-mariadb-1.4.1.jar"
```

1. Compile your application:

```bash
$ javac App.java
```

1. Execute the Java class:

```bash
$ java App
```

<sub>*This page is: Copyright © 2025 MariaDB. All rights reserved.*</sub>

{% @marketo/form formId="4316" %}
