Tip:
Highlight text to annotate it
X
Hello everyone.
This is Gerard Visa and today I'm going to show you how to download and install an IDE and the jdk for programming in Java.
The first thing we are going to do is open any web browser.
We are going to Google. And then we search Oracle, which is the main Java distributor.
Let's open the download tabs and click on "Java for Developers".
Then we have to choose between two options.
The left one, which is for downloading only the jdk.
Or the right one, which I strongly recommend you in this video because it allows us to download NetBeans (IDE) and the jdk at the same time.
Let's accept the license and now we must choose the right link depending on our operative system.
In my case, I own a 32 bit Windows, so I have to click on this one.
Time to wait until the download ends.
We have already completed the download, so let's launch the installer.
When this screen appears, it means the installation process is ready to begin.
Here as you can see, it is said that I already have the jdk.
If this isn't your case, you have just to follow the next steps we are going to do with the NetBeans.
Let's click on Next.
Here, both buttons accept the license terms, don't get confused.
The problem is that the first one installs the JUnit device, while the second one doesn't.
I personally don't want to get the JUnit, so I click on the second one.
Next.
Let's check that either files are nearly located.
Next.
And here we have to choose if we want our NetBeans to be automatically updated.
In my case I don't need them, so I click on Install.
Time to wait for a while again.
Well, when this screen appears, it means that the installation has been completed.
At the end of the installation we are asked about if we want to contribute with the NetBeans project by sharing some of the data we will use with that program.
It's entirely voluntary, so decide on your own.
But I choose NO.
We have just ended. It's time to program our first...
...software, which will be "HelloWorld", the typical...
...program that is always made to begin.
Let's open the NetBeans.
And when this main screen appears, we go to "File" --> "New Project" --> "Java" --> "Java application".
Next.
And we are going to name it HelloWorld.
Each time we begin a word, the first letter must be written in capitals.
It's a java esthetics rule.
And I think I must add a 2...
... no wait, a 3 because I already have programs with this same name.
But you can simply name it HelloWorld.
Let's click on Finish, and the text editor where we will write the program will be immediately opened.
These commentaries don't disturb.
I mean, they don't modify the program's procedures.
But if they bother you, delete them. Go ahead.
The only sentence we are going to put will be written here, under "public static void main".
And always with an indexed space.
Let's write the next sentence: System.out.println(), and inside the brackets the text that we want to be displayed when we execute the program.
That will be... Hello World. In English.
Great.
Even if it seems a lie, we have finished the program and now, what we are going to do in order to compile it, it's clicking on here.
This button saves and compiles the software.
And for the execution we have just to click on there.
A tab is opened now down here.
And as you can see, it says that our program is correct.
It has spent 0 seconds executing it and it displays the text that we asked for before: "Hello World".
Well, that has been a small step.
But the further learning depends on you...
I hope this has been a helpful video, and see you soon.
Bye!