Installing the JDK

Step 1: Download the installation file from the website

As of today, the location of the JDK downloads is located at Java SE Downloads
I think that you can take the latest JDK – in our course it is JDK 1.8. But I repeat again – you will not see any fundamental differences in the installation. Your task is to find the version of the JDK that will install on your computer – select the operating system and bitness.

Step 2: Install JDK from file

There shouldn’t be any difficulties here either – I didn’t see a fundamental difference between versions 1.4, 1.5, 1.6 and 1.7. We launch the downloaded file and after some waiting you will see the start screen for installation. Click “Next”.

On the next screen, you will be prompted for the installation directory. I prefer installing to a directory other than the default. (it is highlighted in red). Click the “Change …” button.

In the window that appears, set the directory “C: \ Java \ jdk1.7.0_03”. After that, I strongly advise you to select this path and save it to the clipboard (we will use it a little later). Then click “OK”.

After that, you can see the installed directory in the window. Press the Next button again.

After a while, the JDK installation is almost complete, but you will also have to install the JRE (Java Runtime Environment). You will immediately see this in the form that should appear. There is no need to change the directory – feel free to click “Next”.

For a while, you will see a screen that says that 3 billion devices are using Java.

Finally, you will see that the installation is complete.

Version 1.7 introduces one more step – choosing to install JavaFX 2.0. You will get a screen for choosing a directory (I didn’t really like how it was implemented). But in general, you can just click the Next button. Because I have a bad attitude to direories with a space, then I chose my own version.

Step 3: Setting Environment Variables – JAVA_HOME and PATH

This completes the installation. The only thing left to do is to register the path to the JDK files in the paths of the operating system. This will allow us to run the main files from the command line – a convenient moment. And we will also set the JAVA_HOME variable – this will really not come in handy soon, but we will do it right now. I think most of you know how to do this. But let’s do it together. I am using Windows 7.0 – so I will be demonstrating on it. From the Start menu, find Computer and right-click on it. In the menu that appears, select the “Properties” item. A window will appear

We select the item “Additional system parameters” (I have highlighted this item). We get a window in which you need to select the “Environment Variables” item.

In the window that appears, you need to create one variable – “JAVA_HOME”. And edit the variable “Path”. To do this, press the “New” button.

The variant of setting the “JAVA_HOME” variable is shown in the figure. This is where the line that I suggested you remember when installing the JDK comes in handy.

To set the “Path” variable, most likely it is not necessary to create it – it usually already exists. So you need to find it in the list and click the “Change” button. But be careful – firstly, here you need to enter a line by placing a “;” at the end of the list of all paths. And second, add the “\ bin” line after. An example is shown in the figure.

And again – BE CAREFUL when editing PATH – it contains important information. Do not erase it entirely and leave only your line. It is necessary after the semicolon to ADD a line before the directory with the JDK (+ the line “\ bin”). Those. if you have JDK installed in the C: \ Java \ jdk1.7 directory, then add the line C: \ Java \ jdk1.7 \ bin to PATH (via “;”).

Leave a Reply

Your email address will not be published. Required fields are marked *