Installation of Java for OOP with Tecla 
Tags: tutorial, java, beginners, ipn
Published: 2020-11-27 22:17:55

So... Fisrt things first, if you are a student of ESCOM and you are going to take the opp class with Tecla then this series is for you.

This is the first post of a series of 4 to configure all you need to do your oop practices. This series is intended for windows users as is the OS that I use.

During the course, Tecla is not going to teach how to install Java, Java 3D, apache tomcat or MySQL anytime, so i'll try to explain the process that at least worked for me and my classmates. Also the programs will be writen in text editors, you can use an IDE but at last that will make your work harder to integrate, so keep it as simple as possible.

To begin with, I'll explain how to install the Java runtime environment (JRE) and the Java Developmet Kit (JDK).

## Step 1: Download. 

To download any Oracle product you have to create an Oracle acount and you can create one by clicking [this link](https://profile.oracle.com/myprofile/account/create-account.jspx), you can fill the information required as show the image below.
![Oracle registration window](https://dev-to-uploads.s3.amazonaws.com/i/6d76vqrgkhi7762gcd37.png)

Once the registration is completed you just need to go to [this site](https://www.oracle.com/mx/java/technologies/javase-downloads.html) and scroll down to the "Java SE 8" section, click the download hyperlink and in the redirected page select the installer that fits with your computer (windows x64 in my case), accept the "Oracle Technology Network License Agreement for Oracle Java SE", and wait till the download finish.
![Java SE 8 download sectioan](https://dev-to-uploads.s3.amazonaws.com/i/jthoh3o7t50n871380oo.png)

![Selection of the type of installer](https://dev-to-uploads.s3.amazonaws.com/i/uwmqlgzc4mh6fosuazzr.png)

## Step 2: Installation.

Once you have the installer in your computer, run it.

**Substep 1:** Start the installation by clicking "next" in this window.
![Java wizard installer](https://dev-to-uploads.s3.amazonaws.com/i/w8x89szvqxoij0a2ot66.png)

**Substep 2:** Select the features to be installed and click "next".
![Selection of features to be installed](https://dev-to-uploads.s3.amazonaws.com/i/2bhmkw2kklin6bbnby7s.png)

**Substep 3:** wait till the process finish.
![progress bar of configuration of the wizard](https://dev-to-uploads.s3.amazonaws.com/i/3j5gm0lmy8qwmntttt6h.png)

**Substep 4:** Once this windows is shown select where where you want to install the JDK (to ease further installations of some complements as Java 3D keep the default installation route).
![Selection of the installation directory](https://dev-to-uploads.s3.amazonaws.com/i/w6i51sv7kps0kg29se5e.png)

**Substep 5:** Wait till the installation finish.
![Progress bar of installation](https://dev-to-uploads.s3.amazonaws.com/i/cy7mf5uqvbqh32b63rb5.png)

**Substep 6:** And click "Close" to exit.
!["Close to finish" window](https://dev-to-uploads.s3.amazonaws.com/i/h25vuc147q6rqwxqru5l.png)

This version of the JDK includes the JRE so you don't need to download any extra file.

## Step 3: Environment variables configuration.

To finish configure java in your computer you need to create or edit some environment variables so you can work with any tool to compile and execute your programs.

**Substep 1:** On your keyboard press the "Win"+"Q" keys to open the search bar and search for the "environment variables" ("variables de entorno") and then click open.
![Windows search bar](https://dev-to-uploads.s3.amazonaws.com/i/2v1q18d5ya6py8as2d30.png)

**Substep 2:** Once this windows opens click the "environmet variables" ("variables de entorno") button.
!["System properties" window](https://dev-to-uploads.s3.amazonaws.com/i/c9843y4qllh1l02o5alj.png)

**Substep 3:** Wait till the next window appears and to add a new environment variable click the "New" option.
!["Environment variables" window](https://dev-to-uploads.s3.amazonaws.com/i/mw05pjyufqig06v10c83.png)

**Substep 4:** In the fields that appear you must to insert the next values and then click "OK". 

<center>

| variable       | Value                                |
|:--------------:|:------------------------------------:|
| JAVA_HOME      | the route of installation of the JDK | 

</center>

!["New environment variable" window](https://dev-to-uploads.s3.amazonaws.com/i/dsfeix6nqi7rxr4rcrjd.png)

Add another environment variables as before with the next values.

<center>

| variable       | Value                                  |
|:--------------:|:---------------------------------------|
| JRE_HOME       | %JAVA_HOME%\jre                        |
| CLASSPATH      | .;%JAVA_HOME%\lib\\*;%JRE_HOME%\lib\\* |

</center>

**Substep 5:** Now we need to add some values to the variable "Path" if your computer have a single user or your profile is the only one that need the development tools, then you can add the next values to the variable "Path" of your user as shown in the image below, otherwise you can add them to the System variable "Path".
!["Environment variables" window](https://dev-to-uploads.s3.amazonaws.com/i/qgt3srroxh777p52gbkn.png)

once you click twice that variable a window will show and you have to add the following values to the list, first click on "New" then add one of the new values and repeat the process for the rest. 

<center>

| values          |
|:---------------:|
| %JAVA_HOME%\bin |
| %JAVA_HOME%\lib |
| %JRE_HOME%\bin  |
| %JRE_HOME%\lib  |

</center>

!["Edit path environment variable" window](https://dev-to-uploads.s3.amazonaws.com/i/vje1rzh5gy3d9dil7ido.png)

**Finally** Click "OK" on this window, an then click again "OK" on the window of the third point of this step, restart your computer and now you can start programming with java.