Thursday, January 19, 2017

Learn Java for Beginner easily ! part 3 : Downloading Eclipse


The JDK contains some separated programs which each program is called from the command line, to develope and testing JAVA. Beside JDK, You can also use some JAVA development's device like Net-Beans,Eclipse and TextPad. But what i'm gonna use in this tutorial is Eclipse.

Eclipse is one of a good app that provides IDE (Integrated Development Environment) to develop JAVA.

Q : Why should I installed Eclipse ?

A : Because if you did something wrong in your program whether it's a typo,missing semicolon or some reckless act.This IDE will show you in which line does your program goes wrong.

I think it's enough with the introduction.

Go download Eclipse here :





Download Eclipse (match your download with your operating system)

After you finish download it,then you will have a zip files like this


I want you to extract that file, then you should have a folder like this


Then open the app that the arrow shows on the picture below


Determine your default storage for saving your program then click 'ok' just like the picture below.






Congrats ! Eclipse has been installed succesfully !

So the first thing i want you to do so that you can start coding is click on File>New(Alt+Shift+N)>Java project . Just like the picture below




The next thing you'll do is give your project a name then click 'Finish'.
 In this case,I will name my project "Irsyad" just like the picture below.




The next thing I want you to do is :

  1. Click on 'the little arrow beside your project name or Double click on your project's name
  2. Click right on the 'src'
  3. Click New>Class
If you are confuse just look at the picture below :





Then there should be a box looks like the picture below that ask you to give a name for your class.In this case, I will name my class as "ashari". Then click 'Finish'.




You are ready to write code.Next, I want you to write the same code in Part 2, or the same code with the picture below.



This is a program to print "Hello Guys !" .You can type any text you want inside the quotation mark.

Next, Let's run the program ! :)

After you finish write the code, then it's time to run your program by click on the 'Run' icon which showed with a 'play button' icon>Java Application>ok>ok.


1. Click 'Run'.


2. Click 'Java Application>ok'.



3.Click 'ok'.


If the console box at the downside of your program shows the text then your Program works !


Congrats ! you just run your first program succesfully.

But, if there is something wrong in your program, There should be a warning in the console box which shows where your program goes wrong. In this case, I will change System.out.println with System.outs.println just like the picture below.


The number '5' that the arrow shows in the picture tells you that there is something wrong in Line 5.
See ? You will find your mistakes while coding faster if you're using IDE app like Eclipse.

There is one last thing I want to tell you to make your coding activity easier,I suggest to show the line number in your workspace.This is how to do it :

  1. Click on 'Window' tab on the upside of the eclipse.
  2. Click on 'Preferences'.
  3. General>Editor>Text Editor.
  4. Check the "Show line number" box then click 'ok'.


If you're confuse, look at these pictures :








So that's it guys. I hope you guys have successfully installed eclipse.If you guys got any trouble, Please don't be hesitate to leave a comment below so that I can help you while improveing my blog.
See you guys on the next tutorial !













No comments:

Post a Comment