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:
$ mvn packageRun the application:
$ java -jar target/app.jarBuilding with JAR
To build your Java application from a download:
Add your application and the JAR for MariaDB Connector/R2DBC to the Java CLASSPATH:
$ export CLASSPATH="/path/to/application:/path/to/r2dbc-mariadb-1.2.0.jar"Compile your application:
$ javac App.javaExecute the Java class:
$ java AppThis page is: Copyright © 2025 MariaDB. All rights reserved.
PreviousUsing the Native R2DBC API of MariaDB Connector/R2DBCNextBatch Operations with MariaDB Connector/R2DBC (Native API)
Last updated
Was this helpful?

