# Set environment variables

If you do not set the **HOME** environment variables, Pentaho does not start correctly. Complete the steps in this topic to ensure that you have set the **HOME** environment variables properly.

1. Set the path of the **PENTAHO\_JAVA\_HOME** variable to the path of your Java installation, as shown:

   `SET PENTAHO_JAVA_HOME=C:\Program Files\Java\jdk11.x.x.x`
2. (Optional) If you are using a JRE, then also set the **JRE\_HOME** home environment variable.
3. Log off and log on again, then verify the variables have been properly set by using a command similar to the following example:

   `ECHO %PENTAHO_JAVA_HOME%`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/install/10.2-install/pentaho-installation-overview-cp/archive-installation/archive-installation-process/prepare-your-windows-environment-for-an-archive-install/set-environment-variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
