Introduction to Netbeans - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

Introduction to Netbeans

Description:

... Java SE Will work fine for this class but choose one of the others if you re continuing on Java EE All Run the installation file downloaded File-New Project ... – PowerPoint PPT presentation

Number of Views:849
Avg rating:3.0/5.0
Slides: 20
Provided by: Christop573
Category:

less

Transcript and Presenter's Notes

Title: Introduction to Netbeans


1
CS 2511 Fall 2014
2
  • Windows
  • Start-gtSpecialized Academic Software-gtProgramming
    Languages-gtNetBeans-gtNetBeans IDE x.y.z
  • where x.y.z is a version number
  • Linux
  • Applications-gtProgramming-gtNetBeans IDE x.y
  • Where x.y is a version number

3
  • Make sure you have Java Platform already
    installed
  • Netbeans Home Page
  • http//www.netbeans.org
  • Click on Download Free or go to
    http//netbeans.org/downloads/index.html
  • Download one of the following
  • Java SE
  • Will work fine for this class but choose one of
    the others if youre continuing on
  • Java EE
  • All
  • Run the installation file downloaded

4
(No Transcript)
5
  • File-gtNew Project

6
  • Select Java under Category
  • Note Categories will differ depending on the
    version downloaded
  • Select Java Application under Project
  • Click Next gt

7
  • Enter a Project Name
  • Select a Project Location
  • Check Create Main Class
  • Check Set as Main Project
  • Click Finish

8
  • Select the file you want to edit in the Project
    Explorer on the left
  • Edit the file in the editing area on the right

9
  • File-gtNew File
  • Select Java under Category
  • Select Java Class (or Java Package) under
    File Type
  • Click Next gt

10
  • Enter a Class (or Package) Name
  • Select the Package desired (only when adding a
    class)
  • Click Finish

11
  • Click the hammer to build the main project
  • (Builds project with a bold header if multiple
    projects are open)
  • Click the Green Arrow to run the project
  • Output should be at the bottom of the screen

12
  • Right Click on the class you want to create a
    JUnit test for in the Project Explorer
  • Expand Tools
  • Click on Create JUnit Tests
  • Select JUnit 4.x
  • Click Select
  • Click OK

13
  • Change expResult to expected return value
  • Delete fail("The test case is a prototype.")

14
  • Run-gtTest File
  • Check Results at the bottom
  • Expand the results for more details

15
  • Click to the left of a line number to add a break
    point

16
  • A red square indicating a breakpoint will appear
  • Click on the icon at top with line numbers, a
    break point, and a green arrow on it

17
  • Current line is in green
  • Information about variables is located at bottom
  • Use the controls at the top to navigate through
    the execution

18
  • Controls (Left to Right)
  • Finish Debugging Session
  • Immediately stop the execution and end the
    program
  • Pause
  • If program is running, stops it where it is and
    returns it to debugging mode
  • Continue
  • Run until the next breakpoint (or end of program)

19
  • Step Over
  • Step over a method call and start debugging at
    the next line
  • Step Over Expression
  • Similar to Step Over except involving expressions
    instead of methods
  • Step Into
  • Continue debugging inside the selected method
    call
  • Step Out
  • Continue debugging after the current method call
    is finished
Write a Comment
User Comments (0)
About PowerShow.com