| <!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> |
| Viewing and editing a project's Java build path |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| </head> |
| <body> |
| <h1> |
| Viewing and editing a project's Java build path |
| </h1> |
| <p> |
| A project's Java build path can either be defined when creating the project with the <strong>New Wizard</strong> or later in the project's property dialog. The Java |
| build path settings dialog is the same in both cases. To view and edit a project's Java build path, follow these steps: |
| </p> |
| <ol> |
| <li> |
| Select the project you want to view or edit |
| </li> |
| <li> |
| From the project's pop-up menu, select <strong>Properties</strong> |
| </li> |
| <li> |
| Select the <strong>Java Build Path</strong> page |
| </li> |
| <li> |
| Define the source entries for the build path on the <strong>Source</strong> page: |
| <ul> |
| <li> |
| Click the <strong>Add Folder</strong> button to add source folders to the Java build path.<br> |
| The <strong>Remove</strong> button removes the selected folder(s) from the build path.<br> |
| <strong>Edit</strong> lets you modify the selected entry. |
| </li> |
| </ul> |
| </li> |
| <li> |
| On the <strong>Projects</strong> page, identify the other projects that are required for building this project. The list shows all the existing Java projects from the |
| workbench. <strong>Note</strong>: Each selected project is automatically added to the list of referenced projects. |
| </li> |
| <li> |
| On the <strong>Libraries</strong> page, define the libraries required by your project. Libraries come in different forms. There are buttons for adding a library in each |
| form. By default, each Java project has a 'JRE System Library' entry on the build path. This entry stands for the workbench's default JRE. |
| </li> |
| <li> |
| On the <strong>Order and Export</strong> page, define the Java build path order. The recommended ordering is to have source entries before the library entries and the |
| required projects. |
| </li> |
| </ol> |
| <p> |
| <img src="../images/ngrelc.png" alt="Related concepts" border="0" > |
| </p> |
| <p> |
| <a href="../concepts/concepts-4.htm">Java builder</a><br> |
| <a href="../concepts/cbuildcp.htm">Build classpath</a> |
| </p> |
| <p> |
| <img src="../images/ngrelt.png" alt="Related tasks" border="0" > |
| </p> |
| <p> |
| <a href="tasks-113.htm">Adding a JAR file to the build path</a><br> |
| <a href="tasks-112.htm">Adding a class folder to the build path</a><br> |
| <a href="tasks-114.htm">Adding a variable class path entry</a><br> |
| <a href="tasks-106.htm">Building a Java program</a><br> |
| <a href="tasks-110.htm">Working with build paths</a><br> |
| <a href="tasks-JREs.htm">Working with JREs</a> |
| </p> |
| <p> |
| <img src="../images/ngrelr.png" alt="Related reference" border="0" ><br> |
| <a href="../reference/ref-123.htm">Java Build path</a> |
| </p> |
| |
| </body> |
| </html> |
| |