# Java Installation Instructions

## **Java Installation on Windows**&#x20;

Download Java from here: [https://www.java.com/en/download](https://www.java.com/en/download/win10.jsp)

Continue with normal installation:

![](/files/-M4Y4HQffx1MegPUP4mI)

Verify that java is install by opening cmd and typing

java -version

![](/files/-M4Y4d2CEK8WYx1d1KWG)

How to set Environment Variables

1. Click on my computer and open properties

![](/files/-M4Y4u4VwTlh4glQVdVF)

2\. Go to advanced system settings

3\. Go to environment variables

![](/files/-M4Y5FrfHQRASLtxhs0T)

4\. Click on new and name the variable as PATH

5\. Find and copy the path that leads to java\jdk\bin

example: c:\Program Files\Java\jdk1.8.0\_181\bin

![](/files/-M4Y5X0mioAxn6PGI8PZ)

6\. Paste the path as the value

![](/files/-M4Y5iz0DyFnAq98bP3f)

## **Java installation for Mac OS X (10.15)**

Download and install Java: <https://www.java.com/en/download/mac_download.jsp>&#x20;

Insure java is installed by typing java -version in the Terminal:

![](/files/-M4Y72sFf5-q6WhztB8j)

Creating a .bash\_profile on your mac

A typical install of OS X won't create a .bash\_profile for you. When you want to run functions from your command line, this is a must have.

To set up the environment variables open the Terminal and go to the home folder by using the following command: "cd \~/

1. Create a new file by typing: touch .bash\_profile
2. Edit .bash\_profle by typing: open -e .bash\_profile
3. Type: export JAVA\_HOME=$(/usr/libexec/java\_home)
4. Save the file (command + s) and return to the Terminal
5. Type: source .bash\_profile


---

# 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.oxygenhq.org/download-installation-start/download-and-installation/java-installation-and-path-environment-variable-for-java.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.
