Compiling Apps

You can compile applications that use the MapR-DB Java API by using the required JAR file from the MapR installation. Run applications with the mapr command.

Compiling application

Use the following command to compile applications:
javac -cp `mapr classpath` <Application jars>
Note: This JAR file is provided by MapR as part of the MapR installation.

Launching Applications

Use the following command to launch applications:
mapr <Main class jar> <commandline arguments>
Note: If you want to add JAR files to the classpath that the mapr command uses, add them with the environment variable MAPR_CLASSPATH.


export MAPR_CLASSPATH=/home/apps/awesome-1.0.jar