---
title: A suitable Java environment is not available
description: The server requires that Java be installed on the system and made available to the server, and it must be installed prior to running setup. If the setup tool does not detect that a suitable Java environment is available, it will refuse to run.
component: pingauthorize
version: 10.1
page_id: pingauthorize:troubleshooting_pingauthorize_server:paz_error_java_environment_not_available
canonical_url: https://docs.pingidentity.com/pingauthorize/10.1/troubleshooting_pingauthorize_server/paz_error_java_environment_not_available.html
revdate: August 22, 2023
---

# A suitable Java environment is not available

The server requires that Java be installed on the system and made available to the server, and it must be installed prior to running `setup`. If the `setup` tool does not detect that a suitable Java environment is available, it will refuse to run.

To ensure that this does not happen, the `setup` tool should be invoked with an explicitly defined value for the *JAVA\_HOME* environment variable that specifies the path to the Java installation that should be used. For example:

```
env JAVA_HOME=/ds/java ./setup
```

If the previous command doesn't solve the issue, the value specified in the provided *JAVA\_HOME* environment variable might have been overridden by another environment variable. In that case, try the following command, which should override any other environment variables that can be set:

```
env UNBOUNDID_JAVA_HOME="/ds/java" UNBOUNDID_JAVA_BIN="" ./setup
```
