Methods for building projects with MariaDB Connector/R2DBC vary depending on the installation method you use.
When building your Java application with Maven, the build downloads and installs the relevant JAR dependencies, and compiles your project:
Run the application:
Building with JAR
To build your Java application from a download:
Add your application and the JAR for MariaDB Connector/R2DBC to the Java CLASSPATH:
Compile your application:
Execute the Java class:
This page is: Copyright © 2025 MariaDB. All rights reserved.
$ mvn package$ java -jar target/app.jar$ export CLASSPATH="/path/to/application:/path/to/r2dbc-mariadb-1.2.0.jar"$ javac App.java$ java App