Rabu, 30 Januari 2013

Running Eclipse for the first time

Running Eclipse for the first time



  • Find the file named Eclipse.exe (on Windows) or Eclipse (on Ubuntu) and then double-click
  • At the first run Eclipse, Eclipse will ask workspace, the folder where the project and it is put. You can place it anywhere as long as not in the Eclipse folder itself.
  • Click Browse and select the folder that is desired. Tick ​​"Use this as the default and do not ask again"
  • Opening page will appear. Click "Workspace", the rightmost button-shaped arrows to fit into your workspace.
Your first Java program :

  • Click "File -> New -> Java Project"
  • Fill in the project name (example :  SelamatDatang), then click "Finish"
  • After Eclipse project for making your workspace on the left you will see your project directory structure that starts with the name of the project, the src folder, and the folder JRE System Library
  • Right click on the src folder, then "New -> Package"
  • Fill in name of the package (example :  selamatdatang), then click "Finish"
  • Right-click again on selamatdatang folder, then "New -> Class"
  • Fill in the name of the class (example : SelamatDatang)
  • Because this class is the main class that will be directly executed by the JRE (Java Runtime Environment), click "public static void main (String [] args)" in the "Which method stubs would you like to create?"
This is an example of a print screen that I created :



  • Click "Finish"
  • Eclipse will create a program that contains an empty package and class according to the name you entered in the previous stage
  • Now type the following programs under the "/ / TODO"
  • System.out.println("Selamat Datang!");
  • Then save the result
Running your first Java program :

  • To run your program, click "Run -> Run"
  • At the bottom of the tab titled "Console" program results are displayed
  • The program will feature writings Welcome! as in the picture below


And this is the result :     


NB         : If There is a difficulty, Stay Comments only. 
                It was rather difficult. 
                I will help as much as possible. 
                Thank's for your visit my blog.







Tidak ada komentar:

Posting Komentar