| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//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 new Java package |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| </head> |
| <body> |
| <h1> |
| Creating a new Java package |
| </h1> |
| <p> |
| To create new Java packages in the Package Explorer: |
| </p> |
| <ol> |
| <li> |
| Optionally, select the project or source folder where you want the package to reside. |
| </li> |
| <li> |
| Click the <strong>New Java Package</strong> button in the workbench toolbar. The New Java Package wizard opens. |
| </li> |
| <li> |
| Edit the <strong><strong>Source Folder</strong></strong> field to indicate in which container you want the new package to reside. You can either type a path or |
| click <strong><strong>Browse</strong></strong> to find the container. If a folder was selected when you chose to create the new package, that folder appears in |
| the <strong><strong>Source Folder</strong></strong> field as the container for the new package. |
| </li> |
| <li> |
| In the <strong><strong>Name</strong></strong> field, type a name for the new package. |
| </li> |
| <li> |
| Click <strong><strong>Finish</strong></strong> when you are done. |
| </li> |
| </ol> |
| <p> |
| <strong>Note:</strong> the default (unnamed) package always exists and does not need to be created. |
| </p> |
| <p> |
| <img src="../images/ngrelc.png" alt="Related concepts" border="0" > |
| </p> |
| <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-51.htm">Moving folders, packages, and files</a><br> |
| <a href="tasks-12.htm">Organizing Java projects</a><br> |
| <a href="tasks-77.htm">Opening a package</a><br> |
| <a href="tasks-90.htm">Renaming a package</a> |
| </p> |
| <p> |
| <img src="../images/ngrelr.png" alt="Related reference" border="0" > |
| </p> |
| <p> |
| <a href="../reference/ref-125.htm">New Java Package wizard</a><br> |
| <a href="../reference/ref-128.htm">New Source Folder wizard</a><br> |
| <a href="../reference/ref-3.htm">Java Toolbar actions</a> |
| </p> |
| |
| </body> |
| </html> |
| |