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

Exercise 3, reinforces much of the material presented in Chapter 4, Running and Debugging Java. The exercise is broken down into a number of sections, each demonstrating different debugging concepts.

  1. Launch Configurations - In this first section, you'll see how to run Java programs using launch configurations. This will include passing program arguments, passing Java VM parameters, and referring to classes in a run-time library (JAR file).
  2. Debugging - In this section, you'll debug a Java program, use breakpoints, examine program execution, and see how to control program execution.
  3. Debugging II - This section starts where the previous left off. You'll see more kinds of breakpoints, view and change variable values, use launch configurations to start a debugging session, and refer to classes in a run-time library.
  4. Debugging Threads - In this part, you'll debug a multithreaded program and see watchpoints and method breakpoints on a class in a JAR file for which you do not have the source.
  5. Remote Debugging - In the final part of the exercise, you'll see how to debug a program running outside of Eclipse.

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

Exercise solutions are in com.ibm.jdg2e.soln.usingjdt.launchconfigurations.

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.