How to learn Java. In the last few days, chatting with a friend, have you heard of programming languages, have you been particularly struck by it and now would like to know more about Java? Very good. In that case you are on the right website.

If you are looking for help learn java You can consider yourself more than lucky, in the following lines I will explain how to do it.

Table of Contents

How to learn Java: basic concepts

What is Java?

However, before explaining everything you need to do to learn Java, I want to clarify what it is. Java is a programming language created from research conducted in the University from Stanford in the early 1990s. In 1992 the Oak language was born, produced by Sun Microsystems and created by a group of expert developers led by James Gosling. This name was later changed to Java due to a copyright issue.

After clarifying this if you really want to learn Java, I invite you to feel comfortable and dedicate yourself to reading the following lines. You should know that programming is not easy. In the process, you will be very angry, you will have many failures, but I can assure you that, once you learn, the effort will have been worth it.

First steps: download the Java development kit

To learn Java, I suggest you first download and install Java development kit. It is a set of free programming tools for write, debug and run Java for beginners.

To download the Java Development Kit to your PC, go to the website. On the web page, check the box next to the item Accept license agreement from the section JAVA SE Development Kit 8u45 and then click on the Java Development Kit version related to Windows or the one that best suits your operating system pressing the corresponding element in the section Download.

At this point, wait for the Java Development Kit download to start and finish and then double-click the file you just downloaded to your PC.

Once this is done, the software installation wizard will start. To complete the installation wizard press the button siguiente twice in a row in the displayed window and once in the other window that has been opened. Finally press the button close.

Continue going to open the Windows start menu and click on the entry computer, then right-click an empty spot in the displayed window and from the menu that will open, choose the item property.

Then press Advanced system settings, click on Environment Variables … and then click on the button New … placed under the section System variables so we can create a new variable.

Complete the fields attached to the new window that is displayed by typing JAVA_JDK in the section Variable name: while in Variable value: enter the path where the Java Development Kit was installed, for example C: Java Program Files jdk1.8.0_45. Then press good.

Find the variable » fireplace de variable" from the section System variables and select it. Then press the button edit and edit the field Variable value: go to the end of the entry and add the string % JAVA_JDK% bin. So click the button to accept three consecutive times.


At this point, if you want to start writing your first JAVA program, I suggest you resort to using the development environment Eclipse.

On the web page that appears, select the entry for operating system in use on your PC, then click on the button Download and wait for the Eclipse download to start.

When the download is complete, double-click the file ZIP downloaded and confirm that you want to extract the file. Once the file has been extracted, double-click the extracted folder, click the folder it contains again, then double-click Eclipse. Then in run and click to accept. Wait for Eclipse to load and start then press x placed next to the entrance welcome attached to the window that opened.

To learn Java with Eclipse, I suggest you first take a look at the window of this program. On the left, in the section Package Explorer, you can find the list of all your projects. In the lower part of the window there is a bar through which you can get all the necessary information about what you are programming using the appropriate tabs, while in the right part of the window you can see all the members of the selected class.

To create your first project, press the element office hour located in the upper left corner of the window, click new and then select Java project. Give your project a name by filling in the field Project's name: and then press the button finished.

Now that you've created your first project, you can finally start writing some code. In order to do this and therefore to learn Java in the best way, I suggest you study the detailed guides provided directly by Oracle and which you can access by clicking here in addition to the ones on the website html.

When you are done remember save your project with Eclipse by first pressing the element office hour attached to the menu, then Save as … and finally in to accept.

Know that if you don't prefer Eclipse and are going to learn Java, you can also take advantage of the notes available by default in the operating system that plans to save the created file with the extension Java.

Also note that although I used Windows for this guide, the tips and steps you need to follow to learn Java are practically identical for all OS.