Box Developer Documentation

Install Java SDK

Install Java SDK

You can use Box Java SDK to call Box APIs in a Java project.

To install Java SDK, add a Gradle dependency or Maven dependency, or clone the source into a project. Additionally, you can download one of the precompiled JARs from the releases page on GitHub.

Learn more about 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.