This topic describes how to install Tablestore SDK for Java.


To install Tablestore SDK for Java, you must use JDK 6.0 or later.

Installation methods

You can install Tablestore SDK for Java by using one of the following two methods:

  • Add dependencies to a Maven project

    To use Tablestore SDK for Java in Maven, you need only to add the corresponding dependencies to the pom.xml file. In this example, Tablestore SDK for Java V5.13.9 is used. Add the following content to <dependencies>:

    Note For more information about the version history of Tablestore SDK for Java, see Tablestore SDK for Java.
  • Import the JAR package into Eclipse

    In this example, Tablestore SDK for Java V5.13.9 is used. To import the JAR package into Eclipse, perform the following steps:

    1. Download the Tablestore SDK for Java package.
    2. Decompress the SDK for Java package.
    3. Copy the tablestore-<versionId>.jar file and all files in the lib folder to your project.

      <versionId> specifies the version of Tablestore SDK for Java. For example, the file name for V5.13.9 is tablestore-5.13.9.jar.

    4. Right-click your project name in Eclipse and choose Properties > Java Build Path > Add JARs.
    5. Select all JAR files that you copied in Step 3.

Sample programs

Tablestore SDK for Java provides a variety of sample programs for your reference or use. You can decompress the downloaded SDK package and view the sample programs in the examples folder.