The Java Developer's Guide to Eclipse The Java Developer's Guide to Eclipse

Exercise 2 (found in Part VI) accompanies Chapter 3, Using Java Development Tools. The exercise is broken down into a number of parts, each demonstrating different concepts and building on the previous part.

  1. Hello World - You'll create the ubiquitous "Hello World" program, and you will see how to run it, including how to use a scrapbook page.
  2. Quick Fix - You'll use the JDT's quick fix capabilities to fix a series of errors in a Java program.
  3. Code Generation - You'll see how to significantly improve your productivity by generating Java code to complete expressions, including the use of code templates.
  4. Refactoring - In this part, you'll really start to see the power of the JDT when using refactoring to clean up, reorganize, and extend a program.

Input to the exercise is in com.ibm.jdg2e.usingjdt.

Exercise solutions are in com.ibm.jdg2e.soln.usingjdt.helloworld and com.ibm.jdg2e.soln.usingjdt.

For instructions on importing these projects into your workspace, see the CD-ROM readme.

In addition, Exercise 4, Developing a Simple Web Commerce Application with Eclipse, provides a more robust programming example, developing, deploying, and debugging a servlet application in Apache's Tomcat. This exercise brings together a number of individual concepts presented in Part I.

© Copyright International Business Machines Corporation, 2003, 2004. All Rights Reserved.
Code or samples provided herein are provided without warranty of any kind.