Programming and running code with the Eclipse IDE

Tip

Make sure that you run the Eclipse IDE as an administrator.

After all the previous steps, you are now able to start Java programming. The next screenshot shows the structure of Eclipse:

Programming and running code with the Eclipse IDE

The following are the four sections of Eclipse:

  • Package Explorer: This section is displayed on the left-hand side of the packages and classes that compose the Java project
  • Code: This is shown in the middle of the screen and brings the code that you should interact with
  • Run the code: There are many ways to run code. Perhaps, the easiest one is the play button indicated by arrow A
  • Debug the code: There are also many ways to debug code. The easiest one is the bug button appointed by arrow B.

When you click on the button to run the code, it runs in the Console tab, as shown in the following screenshot:

Programming and running code with the Eclipse IDE
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset