Eclipse Java IDE - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Eclipse Java IDE

Description:

The installation wizard asks the user where the program will be installed. ... Resume can be selected to go to the next breakpoint. ... – PowerPoint PPT presentation

Number of Views:35
Avg rating:3.0/5.0
Slides: 15
Provided by: bobbymc1
Category:
Tags: ide | eclipse | java | resume | wizard

less

Transcript and Presenter's Notes

Title: Eclipse Java IDE


1
Eclipse Java IDE
2
Overview
  • Where to get it
  • How to install it
  • Running the program for the first time
  • Creating a java application

3
Downloading Eclipse
  • http//www.eclipse.org/downloads/
  • This page can be found under Required Software
    under the course homepage.
  • Available for most operating systems
  • You will need a JRE installed to run Eclipse

4
Installation
  • The installation wizard asks the user where the
    program will be installed.
  • You can use default options or choose another
    directory.
  • A desktop shortcut is created by default.

5
Running Eclipse
  • The first time you run Eclipse you will be
    prompted for a workspace.
  • This is a directory where projects are saved to.
  • You are then presented with the Welcome Screen.

6
Creating a Java Project
  • Select Filelt New lt Project lt Java Project lt Next
    and then chose the file name, then click Finish.
  • In the Package Explorer on the left, your new
    project will appear.

7
Creating a Package
  • Select File lt New lt Package
  • Select which source folder you want the package
    to be in and then name it.
  • Click Finish, you should see your new package in
    the Package Explorer.

8
Creating a Class
  • In the Package Explorer, right click on the
    package name and select New lt Class and name it.
  • You are then given options to chose which method
    stubs you would like to create.
  • After you are done, click Finish.

9
Creating a Class
  • The editor window will show a basic Java program
    similar to the one below.

10
Running your Java Program
  • Each time you save your program, it automatically
    compiles it for you.
  • To run your program select Run lt Run As lt Java
    Application.
  • If you try to run without saving a dialog box
    will appear asking you what to save.

11
Running your Java Program
  • If you have any errors in your program you can
    view them by selecting Window lt Show View lt
    Problems.
  • A small window will open up at the bottom with
    the tab Problems.
  • There will also be a little icon, a red X, on the
    left of the line where the error occurred.
  • This icon will give you information about the
    error.

12
JavaDoc
  • Eclipse can automatically generate JavaDoc
  • Go to the top of a method or class definition and
    type
  • /
  • Press enter
  • JavaDoc is automatically generated

13
Auto Complete
  • After typing a class name simply type a period
    and a list of methods or subclasses pops up.
  • You can keep typing or select from the list.

14
Debugging
  • Break points can be set by right clicking on the
    line number.
  • The breakpoints can be toggled by right clicking
  • RungtDebug Last Launched will run the program and
    stop at the breakpoints.
  • Resume can be selected to go to the next
    breakpoint.
Write a Comment
User Comments (0)
About PowerShow.com