0% found this document useful (0 votes)
55 views

Java For Dummies, 5th Edition Using Eclipse... Select A Workspace. (The Workspace Name That Eclipse Suggests Is Fine.)

This document provides instructions for using Eclipse to import and run existing Java projects and code examples, create new Java projects and classes, and edit and run Java code within the Eclipse integrated development environment. It describes selecting a workspace, importing existing projects from a zip file, viewing and running Java files, creating a new Java project and class, and editing and running code within Eclipse.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

Java For Dummies, 5th Edition Using Eclipse... Select A Workspace. (The Workspace Name That Eclipse Suggests Is Fine.)

This document provides instructions for using Eclipse to import and run existing Java projects and code examples, create new Java projects and classes, and edit and run Java code within the Eclipse integrated development environment. It describes selecting a workspace, importing existing projects from a zip file, viewing and running Java files, creating a new Java project and class, and editing and running code within Eclipse.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Java For Dummies, 5th Edition

Using Eclipse...
Select a workspace. (The workspace
name that Eclipse suggests is fine.)

In the Wecome screen, click the
Workbench icon.

Import Existing Projects.


Import Existing Projects.


Select achive file, then Browse to the
location of the book's downloaded
examples (a .zip file).


Select the zip file containing the book's
examples. You'll see a list of Eclipse
projects containing the book's code.

Click Finish.

Double-click a Java file to see its code
in the editor.

Right-click (windows) or Control-
click(Mac) a Java file and select
Run AsJava Application.

The program's run appears in Eclipse's
Console view.

To write your own code, select File
NewJava Project.


In the New Java Project dialog, type a
name for your project, and then click
Finish.

Right-click (Windows) or Control-click
(Mac) your new project in the Package
Explorer view. Then select NewClass.


Type a name for your Java class.
Optionally, check the box to create a
main method.Then click Finish.


Your new class appears in Eclipse's
editor.

Edit the code in Eclipse's editor.

Right-click (Windows) or Control-click
(Mac) your project's branch in the
Package Explorer view. Then select
Run AsJava Application.

If necessary, agree to save any
unsaved files.


2011 John Wiley and Sons, Inc.

Your program runs in Eclipse's
Console view.

You might also like