# 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:

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-M4Y31sjyq7ILbv0x7QM%2F-M4Y4HQffx1MegPUP4mI%2Fimage.png?alt=media\&token=f71c5396-73e4-4d32-b70b-1878c0b5b03d)

Verify that java is install by opening cmd and typing

java -version

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-M4Y31sjyq7ILbv0x7QM%2F-M4Y4d2CEK8WYx1d1KWG%2Fimage.png?alt=media\&token=e8989e05-a2f2-40ea-8906-223b33f69e8f)

How to set Environment Variables

1. Click on my computer and open properties

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-M4Y31sjyq7ILbv0x7QM%2F-M4Y4u4VwTlh4glQVdVF%2Fimage.png?alt=media\&token=3324ccc9-4ac6-48e5-89d1-7cbb3f0533a6)

2\. Go to advanced system settings

3\. Go to environment variables

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-M4Y31sjyq7ILbv0x7QM%2F-M4Y5FrfHQRASLtxhs0T%2Fimage.png?alt=media\&token=571616db-5453-4020-bdde-fd8b3f74fcf8)

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

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-M4Y31sjyq7ILbv0x7QM%2F-M4Y5X0mioAxn6PGI8PZ%2Fimage.png?alt=media\&token=1a546927-9052-46b0-8c87-9ead5b6d365a)

6\. Paste the path as the value

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-M4Y31sjyq7ILbv0x7QM%2F-M4Y5iz0DyFnAq98bP3f%2Fimage.png?alt=media\&token=9178793e-1c66-4ead-a773-e9b6c7590ee7)

## **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:

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-M4Y6FRHpiIlsF6p_MZM%2F-M4Y72sFf5-q6WhztB8j%2Fimage.png?alt=media\&token=84aa6a72-d4c4-4235-9671-2dd0b3f804b2)

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
