Java Reference
In-Depth Information
The
JavaDoc
API
Paths
tab tells
IDEA
where it can find the
HTML
documentation
that describes the target
JDK
's source code. Adding entries to the
JavaDoc
API
Paths
tab is also optional, but doing so gives you the ability to view documenta-
tion directly from the
IDE
. Specify the directories or
JAR
files where the
JDK
's doc-
umentation can be found. Alternatively, you can enter a
URL
that represents the
root of the
API
documentation stored on a web server.
IDEA
uses this
URL
to
locate the appropriate documentation if requested. For example, for
JDK
1.4.2,
you can use the documentation from Sun's web site by entering the
URL
http://
java.sun.com/j2se/1.4.2/docs/api/index.html.
If you install a new
JDK
at some point after
IDEA
has been installed and
configured (or add the source or JavaDoc
API
documentation to an exist-
ing
JDK
), you can always come back to this configuration window
through the
Settings
menu option.
TIP
Continue as follows:
Click the
OK
button to accept the new
JDK
configuration and return to
the
New Project Wizard
.
7
Select the new
JDK
you just configured, and click the
Next
button to
continue.
8
You're prompted to select either a single-module or a multi-module
project.
Modules
represent a discrete piece of functionality within a project
and can be reused in multiple projects. They're discussed in depth in a
chapter 4; for now, select the single-module project and click
Next
.
9
You're prompted to select the type of module this project is concerned
with developing. Again, we'll go into the differences in detail in chapter
4, but for now select
Java Module
and click
Next
.
10
The next dialog in the
New Project Wizard
prompts you for a module
name and a module content root. This is a single-module project, so the
wizard should reuse the project's name as the name of the module. This
is sufficient for the example. The module content root is the directory
where all the work on this project will be done; use the ellipsis button
and following path-selection dialog to specify a new, empty directory, or
accept the default. The
module file
—the file that stores all the module-
specific settings—is typically stored in the module content root folder,
but the
Change Directory
button at the bottom of the window allows you
11