blob: 2051329d5fdf27adaf15dd1f775f8976e104cfc5 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<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">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>
</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>
Open the <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.ui.wizards.JavaProjectWizard)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png">
<strong>New Java Project</strong></a> wizard.
(From the main workbench window, click <strong>File</strong> &gt; <strong>New</strong> &gt; <strong>Project...</strong>.
Select <strong>Java Project</strong>, then click <strong>Next</strong>.)
</li>
<li>
In the <strong>Project name</strong> field, type a name for your new Java project.
</li>
<li>
Select a location for the project and configure the JDK Compliance.
</li>
<li>
In the <strong>Project layout</strong> section, make sure
<strong>Use project folder as root for source and class files</strong> is selected.
</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.png" alt="Related concepts" border="0" >
<p>
<a href="../concepts/concepts-3.htm">Java projects</a>
</p>
<p>
<img src="../images/ngrelt.png" alt="Related tasks" border="0" >
</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.png" alt="Related reference" border="0" >
</p>
<p>
<a href="../reference/ref-121.htm">New Java Project wizard</a><a href="../reference/ref-121.htm"></a>
</p>
</body>
</html>