Cover | Table of Contents
Constant width
Constant width bold
Constant width
Constant width bold
http://java.sun.com; look for the J2SE SDK (Software Development Kit) package without a NetBeans™ bundle. Mac OS X has Java preinstalled. See Table 1 for the minimum and recommended system requirements.|
Requirement
|
Minimum
|
Recommended
|
|---|---|---|
|
Java version
|
1.4.0
|
5.0 or greater
|
|
Memory
|
512 MB
|
1 GB or more
|
|
Free disk space
|
300 MB
|
1 GB or more
|
|
Processor speed
|
800 Mhz
|
1.5 Ghz or faster
|
http://www.winzip.com). The other platforms come with an archive program preinstalled.http://www.eclipse.org. Click on "downloads" and then select the most recent stable or release version of the Eclipse SDK for your platform. If prompted for a mirror site, pick the one located closest to you. If that one is slow or unavailable, simply return to the download page and try a different mirror, or try the main site.
|
View name
|
Description
|
|---|---|
|
Package Explorer
|
Shows all your projects, Java packages, and files.
|
|
Hierarchy
|
Displays the class and interface relationships for the selected object.
|
|
Outline
|
Displays the structure of the currently open file.
|
|
Problems
|
Shows compiler errors and warnings in your code.
|
|
Console
|
Displays the output of your program.
|
|
Javadoc
|
|
View name
|
Description
|
|---|---|
|
Package Explorer
|
Shows all your projects, Java packages, and files.
|
|
Hierarchy
|
Displays the class and interface relationships for the selected object.
|
|
Outline
|
Displays the structure of the currently open file.
|
|
Problems
|
Shows compiler errors and warnings in your code.
|
|
Console
|
Displays the output of your program.
|
|
Javadoc
|
Shows the description (from comments) of the selected object.
|
|
Declaration
|
Shows the source code where the selected object is declared.
|
main and selecting Open Type Hierarchy, you can just select main and press the F4 key.|
Perspective
|
Purpose
|
|---|---|
|
Resource
|
Arrange your files and projects.
|
|
Java
|
Develop programs in the Java language.
|
|
Debug
|
Diagnose and debug problems that occur at runtime.
|
|
Java Browsing
|
Explore your code in a Smalltalk-like environment.
|
|
Java Type Hierarchy
|
Explore your code based on class relationships.
|
|
Plug-in Development |
|
Cursor shape
|
Final position of the view/editor being dragged
|
|---|---|
|
|
Above the window under the cursor
|
|
|
Below the window under the cursor
|
|
|
org.eclipseguide package highlighted, select File → New → Class or click on the New Java Class icon (
public static void main(String[] args).
TODO comments to indicate the places you need to edit. Every place in the code that has a TODO comment is listed in the Tasks view (see Part VII).
//TODO Auto-generated method stub
for (int i = 0; i < 10; i++) {
System.out.println(
"Hello, world " + i);
}
System.out.println() call, so double-click in the gutter next to that line. A breakpoint indicator will appear, as shown in Figure 17.
System.out.println() call, so double-click in the gutter next to that line. A breakpoint indicator will appear, as shown in Figure 17.