blob: fa222be6bd24ab18418efa96c01ff2bdb32b017e [file]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<title>
Creating a Java project as its own source container
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Creating a Java project as its own source container
</h1>
For simple projects, the project itself acts as the source container.
<ol>
<li>
From the main workbench window, click <strong>File</strong> &gt; <strong>New</strong> &gt; <strong>Project</strong>. The New Project wizard opens.
</li>
<li>
Select <strong>Java</strong> from the left pane and <strong>Java Project</strong> from the right pane, then click <strong>Next</strong>. The New Java Project wizard opens.
</li>
<li>
In the&nbsp;<strong><strong>Project Name</strong></strong> field, type a name for your new Java project.
</li>
<li>
Select or clear the <strong>Use default</strong> check box&nbsp; to indicate whether you want to use the default location for your new project. If you clear this check
box, then type or click <strong>Browse</strong> to select a location for the project.
</li>
<li>
Click <strong>Next</strong>. The Java Settings Page opens.
</li>
<li>
On the <strong>Source</strong> tab, check that the project is the only source folder and the default output folder.
</li>
<li>
Optionally, on the <strong>Projects</strong> tab, select the required projects to be on the build path for this project. Use these options only if your project depends on
other projects.
</li>
<li>
Optionally, on the <strong>Libraries</strong> tab, select JAR files and CLASS folders to add to the build path for this new project and attach source to the JAR
files. Use these options only if your project requires additional libraries.
</li>
<li>
On the <strong>Order and Export</strong> tab, use the&nbsp;<strong><strong>Up</strong></strong> and&nbsp;<strong><strong>Down</strong></strong> buttons to move the
selected JAR file or CLASS folders up or down in the build path order for this new project.
</li>
<li>
Click&nbsp;<strong><strong>Finish</strong></strong> when you are done.
</li>
</ol>
<img src="../images/ngrelc.gif" alt="Related concepts" border="0" height="27" width="159">
<p>
<a href="../concepts/concepts-3.htm">Java projects</a>
</p>
<p>
<img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159">
</p>
<p>
<a href="tasks-11.htm">Creating Java elements</a><br>
<a href="tasks-12.htm">Creating a new Java project</a><br>
<a href="tasks-14.htm">Creating a Java project with source folders</a><br>
<a href="tasks-15.htm">Creating a new Java package</a><br>
<a href="tasks-17.htm">Creating a new Java class</a><br>
<a href="tasks-25.htm">Creating a new interface in a compilation unit</a><br>
<a href="tasks-110.htm">Working with build paths</a>
</p>
<p>
<img src="../images/ngrelr.gif" alt="Related reference" border="0" height="27" width="159">
</p>
<p>
<a href="../reference/ref-121.htm">New Java Project wizard</a><a href="../reference/ref-121.htm"></a>
</p>
<p>
<a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" height="14" width="324"></a>
</p>
</body>
</html>