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

# Install

> How to prepare for Atoti Java SDK development: license setup with `ATOTI_LICENSE` or `-Datoti.license`, access to ActiveViam artifacts, Java 25 and a build tool such as Maven

To build and run an Atoti Java SDK application, you need a license, access to ActiveViam artifacts, Java and a build tool
such as Maven. Sections 2 to 6 explain how to set up each one.

## 1 Prerequisites

The following prerequisites are set up in the sections below:

* A valid Atoti [license](#2-how-to-get-and-install-an-atoti-license)
* Access to ActiveViam [artifacts](#3-how-to-get-access-to-activeviam-artifacts)
* Access to the public repositories that serve [open source dependencies](#4-open-source-dependencies)
* [Java 25](#5-how-to-install-java-25)
* A build tool, such as [Maven](#6-how-to-install-a-build-tool)

The following is also required:

* A computer that meets the minimum technical requirements for an
  [Atoti Java SDK development machine](https://docs.activeviam.com/minimum-technical-requirements.md#atoti-java-sdk-development-machine).
  For production, see the requirements for an
  [Atoti Server deployment machine](https://docs.activeviam.com/minimum-technical-requirements.md#atoti-server-deployment-machine).

The following are recommended:

* A [Git client](https://git-scm.com/install), to get the sample project
* An IDE such as [IntelliJ IDEA](https://www.jetbrains.com/idea/download/)

## 2 How to get and install an Atoti license

A license file is required to activate any Atoti installation. Request one through the ActiveViam
customer [portal](https://activeviam.atlassian.net/servicedesk/customer/portals).

The file `Atoti.lic` can be installed in four ways. A customized file name is also acceptable in place of the default
`Atoti.lic`.

### How to install using the full path to the license file

To register the license path in the `ATOTI_LICENSE` environment variable, run the following command. Replace the example
path with the full path to the license file.

**Linux** and **macOS**:

```shell theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
export ATOTI_LICENSE=/full/path/to/Atoti.lic
```

**Windows**, in PowerShell:

```powershell theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
$env:ATOTI_LICENSE = "C:\full\path\to\Atoti.lic"
```

To define the license file location using a JVM system property, pass the full path including the file name.

```
-Datoti.license=/full/path/to/Atoti.lic
```

### How to install using the Base64-encoded license

To encode the license file, run the following command and copy the output.

**Linux**:

```shell theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
cat Atoti.lic | base64 -w 0; echo
```

**Windows**, in PowerShell:

```powershell theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
[Convert]::ToBase64String([IO.File]::ReadAllBytes((Resolve-Path Atoti.lic)))
```

To pass the Base64-encoded value to the `ATOTI_LICENSE` environment variable, run the following command.

**Linux** and **macOS**:

```shell theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
export ATOTI_LICENSE=<Base64EncodedLicense>
```

**Windows**, in PowerShell:

```powershell theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
$env:ATOTI_LICENSE = "<Base64EncodedLicense>"
```

> [!TIP]
>
> The Base64 encoding option is useful in container and cloud environments. The encoded value can be stored in a secret store.

To pass the Base64-encoded value as a JVM system property, use the following flag.

```
-Datoti.license=<Base64EncodedLicense>
```

## 3 How to get access to ActiveViam artifacts

ActiveViam release artifacts are available on ActiveViam's JFrog Artifactory. A customer account is required to
download them. The [download page](https://docs.activeviam.com/download-artifacts.md) lists the repository URLs.

With Maven, add the repository and your credentials to your `settings.xml` file:

```xml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
<settings>
  <servers>
    <server>
      <id>activeviam</id>
      <username>YOUR_ARTIFACTORY_USERNAME</username>
      <password>YOUR_ARTIFACTORY_PASSWORD</password>
    </server>
  </servers>
  <profiles>
    <profile>
      <id>activeviam</id>
      <repositories>
        <repository>
          <id>activeviam</id>
          <url>https://activeviam.jfrog.io/artifactory/mvn/</url>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>activeviam</activeProfile>
  </activeProfiles>
</settings>
```

To avoid storing the password in plain text, use [Maven password encryption](https://maven.apache.org/guides/mini/guide-encryption.html).

## 4 Open source dependencies

The Atoti Java SDK depends on open source libraries, mainly Spring Boot. The [dependencies page](https://docs.activeviam.com/engine/java-sdk/6.2/release/dependencies.md)
lists the top-level dependencies for each version.

## 5 How to install Java 25

The current version of Atoti Server requires Java 25. Any Java 25 distribution works, such as
[Eclipse Temurin](https://adoptium.net/temurin/releases/), Azul Zulu, Oracle JDK or Amazon Corretto. Register the path
to the JDK root directory in the `JAVA_HOME` environment variable.

## 6 How to install a build tool

Atoti Java SDK applications can be built with any Java build tool, such as Maven or Gradle. The sample project uses Maven.

To use Maven, follow the [Maven installation guide](https://maven.apache.org/install.html).

## Next steps

To start a project with in-memory data, a sample project is publicly available at
[atoti-java-sdk-install-and-start/datastore](https://github.com/activeviam/atoti-java-sdk-install-and-start/tree/6.2/datastore).

To start a project with DirectQuery, see the [DirectQuery getting started page](https://docs.activeviam.com/engine/java-sdk/6.2/directquery/getting_started.md).

To start from a full project template, use
the [Atoti Spring Boot template](https://github.com/activeviam/atoti-spring-boot-template).
