> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Java SDK

export const MultiRelatedLinks = ({sections = []}) => {
  if (!sections || sections.length === 0) {
    return null;
  }
  return <div className="space-y-8">
      {sections.map((section, index) => <RelatedLinks key={index} title={section.title} items={section.items} />)}
    </div>;
};

export const RelatedLinks = ({title, items = []}) => {
  const getBadgeClass = badge => {
    if (!badge) return "badge-default";
    const badgeType = badge.toLowerCase().replace(/\s+/g, "-");
    return `badge-${badge === "ガイド" ? "guide" : badgeType}`;
  };
  if (!items || items.length === 0) {
    return null;
  }
  return <div className="my-8">
      {}
      <h3 className="text-sm font-bold uppercase tracking-wider mb-4">{title}</h3>

      {}
      <div className="flex flex-col gap-3">
        {items.map((item, index) => <a key={index} href={item.href} className="py-2 px-3 rounded related_link hover:bg-[#f2f2f2] dark:hover:bg-[#111827] flex items-center gap-3 group no-underline hover:no-underline border-b-0">
            {}
            <span className={`px-2 py-1 rounded-full text-xs font-semibold uppercase tracking-wide flex-shrink-0 ${getBadgeClass(item.badge)}`}>
              {item.badge}
            </span>

            {}
            <span className="text-base">{item.label}</span>
          </a>)}
      </div>
    </div>;
};

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.

<Card href="https://github.com/box/box-java-sdk/tree/main" arrow title="Learn more about Java SDK on GitHub" />

## Gradle

Add the following dependency to the `build.gradle` file.

```shell theme={null}
compile 'com.box:box-java-sdk:2.32.0'
```

<Info>
  For the most up-to-date version number of the Java SDK, please refer to the
  [Java SDK Open Source page][java-os].
</Info>

## Maven

Add the following to Maven dependency.

```xml theme={null}
<dependency>
    <groupId>com.box</groupId>
    <artifactId>box-java-sdk</artifactId>
    <version>2.32.0</version>
</dependency>
```

<Info>
  For the most up-to-date version number of the Java SDK, please refer to the
  [Java SDK Open Source page][java-os].
</Info>

## Installation from source

Download the SDK source from the [Java SDK GitHub repository][java-sdk-src] and
add it to a project.

## Precompiled JAR

Download one of the precompiled JARs for the Java SDK from the GitHub [releases
page][java-sdk-releases].

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

| Dependency                                               |
| -------------------------------------------------------- |
| [`minimal-json v0.9.1`][dependency-min-json]             |
| [`jose4j v0.4.4`][dependency-jose]                       |
| [`bouncycastle bcprov-jdk15on v1.52`][dependency-bcprov] |
| [`bouncycastle bcpkix-jdk15on v1.52`][dependency-bcpkix] |
| [`Java Cryptography Extension (JCE)`][dependency-crypto] |

[npm]: https://www.npmjs.com/

[java-os]: http://opensource.box.com/box-java-sdk/

[java-sdk-src]: https://github.com/box/box-java-sdk/tree/master/src/main/java/com/box/sdk

[java-sdk-releases]: https://github.com/box/box-java-sdk/releases

[dependency-min-json]: https://github.com/ralfstx/minimal-json

[dependency-jose]: https://bitbucket.org/b_c/jose4j/wiki/Home

[dependency-bcprov]: http://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on

[dependency-bcpkix]: http://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15on

[dependency-crypto]: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

<RelatedLinks
  title="RELATED GUIDES"
  items={[
{ label: translate("JWT Auth"), href: "/guides/authentication/jwt/index", badge: "GUIDE" },
{ label: translate("OAuth 2.0 Auth"), href: "/guides/authentication/oauth2/index", badge: "GUIDE" }
]}
/>
