Documentation Home
MySQL NDB Cluster API Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 3.6Mb
PDF (A4) - 3.6Mb


4.2.2 Using ClusterJ

This section provides basic information for writing, compiling, and executing applications that use ClusterJ. For the API documentation for ClusterJ, see Section 4.3, “ClusterJ API Reference”.

Requirements.  ClusterJ requires Java 1.7 or 1.8. NDB Cluster must be compiled with ClusterJ support; NDB Cluster binaries supplied by Oracle include ClusterJ support. If you are building NDB Cluster from source, see Building and installing MySQL NDB Cluster Connector for Java from source, for information on configuring the build to enable ClusterJ support.

To compile applications that use ClusterJ, you either need to have the clusterj-api jar file in your classpath, or use a Maven dependency manager to install and configure the ClusterJ library in your project.

To run applications that use ClusterJ, you need the clusterj runtime jar file; in addition, libndbclient must be in the directory specified by java.library.path. Section 4.2.2.1, “Executing ClusterJ Applications and Sessions”, provides more information about these requirements.