# Prerequisites

Before you begin, ensure you have the following in place.

#### Agent Version Requirements

* **Minimum Java Version**: Java 8 or higher
* **SeaLights Java Agents**: Latest stable version (recommended)

{% hint style="success" %}
Use the latest stable agent version to ensure compatibility and access to the newest features. Check the [release notes](https://app.gitbook.com/o/3RLT0OXHlWYG2r7e2V3v/s/pLxVG9asrlIDdpTbndA4/) for version-specific requirements.
{% endhint %}

#### Downloading the CD Only Java Agent

{% hint style="info" %}
This agent will be used in Phase 1: Core Coverage.
{% endhint %}

Download the latest version of the SeaLights Java CD-Only Agent to the machine where your component is deployed and make it available for that component. The agent is downloadable from the following URL: <https://agents.sealights.co/sl-cd-agent/sl-cd-agent-latest.zip>

Example CLI commands for downloading the SeaLights Java Agent:

```bash
# Download the latest Java agent
wget -nv  https://agents.sealights.co/sl-cd-agent/sl-cd-agent-latest.zip

# Extract the agent
unzip -oq sl-cd-agent-latest.zip

#validate the agent version
echo "Sealights CD Agent version used is:" `cat version.txt`
```

#### Downloading the Java Agent

{% hint style="info" %}
This agent will be used in Phase 2 and after. It is not required for Phase 1: Core Coverage
{% endhint %}

Download the latest version of the SeaLights Java Agent.&#x20;

There are two agent files

* Build Scanner - sl-build-scanner.jar
* Test Listener - sl-test-listener.jar

These agent files can be downloaded from: <https://agents.sealights.co/sealights-java/sealights-java-latest.zip>

Example CLI commands for downloading the SeaLights Java Agent:

```bash
# Download the latest Java agent
wget -nv https://agents.sealights.co/sealights-java/sealights-java-latest.zip

# Extract the agent
unzip -oq sealights-java-latest.zip
```

{% hint style="info" %}
Instructions for downloading a specific version of the agent can be found [here](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-agent/default-usage-cli/downloading-the-java-agent#downloading-the-specific-agent-version-defined-in-customer-settings)
{% endhint %}

#### Access Credentials

You'll need an **Agent Token** to authenticate the agent. See [Generating a Token](https://docs.sealights.io/knowledgebase/setup-and-configuration/getting-started/steps-for-successful-onboarding/generating-a-token#token-management-2) for detailed instructions.

{% hint style="warning" %}
Keep your agent token secure. Do not commit it to version control. Use environment variables or a secrets manager in production environments.
{% endhint %}

***

### Next Steps

Once you have your credentials and access to download the necessary agents, proceed to Phase 1: Core Coverage to begin collecting coverage data from your application.
