Skip to content

Nebula Java

Nebula Java is a Java client for connecting to and managing the NebulaGraph database.


You have installed Java 8.0 or later versions.

Compatibility with NebulaGraph

NebulaGraph version Nebula Java version
3.0.1 3.0.0
2.6.x 2.6.1
2.0.x 2.0.0
2.0.0-rc1 2.0.0-rc1

Download Nebula Java

  • (Recommended) To install a specific version of Nebula Java, use the Git option --branch to specify the branch. For example, to install v3.0.0, run the following command:

    $ git clone --branch v3.0.0
  • To install the daily development version, run the following command to download the source code from the master branch:

    $ git clone

Use Nebula Java


We recommend that each thread uses one session. If multiple threads use the same session, the performance will be reduced.

When importing a Maven project with tools such as IDEA, set the following dependency in pom.xml.


3.0.0-SNAPSHOT indicates the daily development version that may have unknown issues. We recommend that you replace 3.0.0-SNAPSHOT with a released version number to use a table version.


If you cannot download the dependency for the daily development version, set the following content in pom.xml. Released versions have no such issue.


If there is no Maven to manage the project, manually download the JAR file to install Nebula Java.

Core of the example code

This sub-section shows the core of the example code. For all the code, see GraphClientExample.

Last update: March 13, 2023
Back to top