Install Java SDK

Install Java SDK

The Box Java SDK can be used to make API calls to the Box APIs in a Java project.

The SDK can be installed by adding a Gradle dependency or Maven dependency, or by cloning the source into a project. Additionally it can be installed by downloading one of the precompiled JARs from the releases page on GitHub.

Learn more about the Java SDK on GitHub

Gradle

Add the following dependency to the build.gradle file.

compile 'com.box:box-java-sdk:2.32.0'

For the most up-to-date version number of the Java SDK, please refer to the Java SDK Open Source page.

Maven

Add the following to Maven dependency.

<dependency>
    <groupId>com.box</groupId>
    <artifactId>box-java-sdk</artifactId>
    <version>2.32.0</version>
</dependency>

For the most up-to-date version number of the Java SDK, please refer to the Java SDK Open Source page.

Installation from source

Download the SDK source from the Java SDK GitHub repository and add it to a project.

Precompiled JAR

Download one of the precompiled JARs for the Java SDK from the GitHub releases page.

When using one of the precompiled JARs, it is important to also add the following additional dependencies to the project.

Learn more about the Java SDK on GitHub