Java Reference
In-Depth Information
D.1.1
Installing Eclipse
Installing Eclipse is very simple; the process consists of downloading Eclipse from
http://eclipse.org/ and then unzipping it to somewhere on your hard drive. We rec-
ommend downloading Eclipse 3.2 or greater. In the remainder of this appendix, we
assume Eclipse is installed in [ ECLIPSE_HOME ] (for example, C:\eclipse-3.2).
D.1.2
Setting up Eclipse projects from the source
It's extremely easy to set up an Eclipse project, because we provide the Eclipse project
files with the topic's source code distribution. Please refer to appendix C, “The source
code for the topic,” for directory structure organization and project names.
The first Eclipse project to import corresponds to the ch01-jumpstart/ directory.
This project contains the source code for the first chapter of the topic. To import this
project, select File > Import and then select Existing Project Into Workspace. Point
the Project Content to the ch01-jumpstart/ directory on your hard disk.
Repeat the process for all the proj-
ects you wish to see in your Eclipse
workspace. If you import all the proj-
ects, you should end up with the work-
space shown in figure D.1.
D.1.3
Running JUnit tests from Eclipse
To r u n a JU nit test in Eclipse, select the
Java perspective ( ), click the test
class to execute, click the Run As icon
arrow ( ), and select JU nit Test. Fig-
ure D.2 shows what you get if you run
the TestWebClient1 test case found in
the ch05-stubs Eclipse project from
chapter 5.
For full details on how to run JU nit
tests from Eclipse, please see the inte-
grated Eclipse Help: Click Help > Help
Contents. Then, in the Help browser,
select the following topic: Java Develop-
ment User Guide > Getting Started >
Basic Tutorial > Writing And Running
JU nit tests.
Figure D.1 Eclipse workspace when all the topic
projects have been imported
 
 
Search WWH ::




Custom Search