Difference between revisions of "Teams Winter 2011/team4/lab1"

From CDOT Wiki
Jump to: navigation, search
(Creating your first Java project)
(Browsing Java elements using the package explorer)
Line 18: Line 18:
  
 
===Browsing Java elements using the package explorer===
 
===Browsing Java elements using the package explorer===
 +
 +
# The package explorer allows one to explore the contents of various packages within their project
 +
# By default, package explorer is open in eclipse on the far left of your screen (if it is not open, Navigate->Show In->Package Explorer will open it again)
 +
# There will be a tree diagram in the Package Explorer, displaying your Java Project, packages, src folder, and all class, header files, ect
 +
 
===Editing Java elements===
 
===Editing Java elements===
 
===Creating a Java class===
 
===Creating a Java class===

Revision as of 21:59, 2 February 2011

Lab 1


Tutorial

Preparing Eclipse

  1. First,begin by visiting here and choose Eclipse IDE for Java Developers (pay attention to 32bit and 64bit versions)
  2. Unzip the downloaded file int /Eclipse_Platform/Basics directory
  3. Start Eclipse by going into your newly created directory (/Eclipse_Platform/Basics/) and click the Eclipse executable
  4. There will be a dialog box that opens that requests the location of your workspace, enter the following: ./wksp/{app type} where {app type} is something along the lines of 'lab', 'simple', 'hello', ect

Creating your first Java project

  1. Now that you have Eclipse open and have defined a workspace, click File->New->Java Project
  2. After doing so a window will popup requiring you to enter a name for your Java Project, enter any name appropriate to the work you will be doing
  3. Click the next button, followed by the finish button, and you have no created your first Java Project

Browsing Java elements using the package explorer

  1. The package explorer allows one to explore the contents of various packages within their project
  2. By default, package explorer is open in eclipse on the far left of your screen (if it is not open, Navigate->Show In->Package Explorer will open it again)
  3. There will be a tree diagram in the Package Explorer, displaying your Java Project, packages, src folder, and all class, header files, ect

Editing Java elements

Creating a Java class

Renaming Java elements

Moving and copying Java elements

Navigate to a Java element's declaration

Viewing the type Hierarchy

Searching the workbench

Running your programs

Debugging your programs

Evaluating expressions

Evaluating snippets

Using the Java browsing perspective

Writing and running JUnit tests