lecture_2_s2005

lecture_2_s2005 - 1.00 Lecture 2 Interactive Development...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1.00 Lecture 2 Interactive Development Environment: Eclipse Reading for next time: Big Java: sections 3.1-3.9 What’s an IDE? An integrated development environment (IDE) is an environment in which the user performs the core development tasks: Naming and creating files to store a program Writing code (in Java or another language) Compiling code (check correctness, generate executable program) code generation, etc. Eclipse is a popular Java IDE People write better software with an IDE (Pretend the method is main() in each example) Debugging and testing the code And many other tasks: version control, projects, You must use it in 1.00 homework, lecture, tutorial
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
What Do IDEs Do? What does an IDE provide? Visual representation of program components Ability to browse existing components easily, so you can find ones to reuse Quick access to help, documentation to use existing libraries and tools vs writing your own Better feedback and error messages when there are errors in your program A debugger, which is not primarily used to debug, but is used to read and verify code Communication between programmers in a team, who share a common view of the program Your programs in 1.00 are small, but Eclipse will make life much easier In large projects, the benefits are greater still Starting Eclipse Start Eclipse by double clicking the icon on your desktop. Identify all the interface areas labeled on the next slide. The Main Window is the command center, holding menus, tabs, and buttons. The Explorer allows you to manage files and sets of files (projects) that form programs. The working area holds editor, compiler, output or debugger windows as appropriate.
Background image of page 2
Anatomy of Eclipse Main Window Explorer Working Area Creating a Project Choose File->New->Project Make sure ‘Java’ is highlighted, then click ‘Next’
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Creating a Project (2) A ‘New Java Project’ page appears Project name: Lecture2 Your project folder will be in folder eclipse/workspace Hit ‘Finish’ Creating a Class Select ‘Class’, hit ‘Next’ Type class name: NauticalMile Hit ‘Finish’ main() is a method Make sure ‘Create project in workspace’ is checked File->New->Class (or click ‘New’ icon) Make sure ‘public static void main…’ is checked
Background image of page 4
The NauticalMile Program A nautical mile is defined as the average length of
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 13

lecture_2_s2005 - 1.00 Lecture 2 Interactive Development...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online