| <!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." > |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <title> |
| Preparing Eclipse |
| </title> |
| <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script> |
| </head> |
| <body> |
| <h1> |
| Preparing Eclipse |
| </h1> |
| <p> |
| In this section, you will verify that Eclipse is properly set up for Java development. |
| </p> |
| <p> |
| The following is assumed: |
| </p> |
| <ul> |
| <li> |
| You are starting with a new Eclipse installation with default settings. |
| </li> |
| <li> |
| You are familiar with the basic Eclipse workbench mechanisms, such as views and perspectives. |
| </li> |
| </ul> |
| <p> |
| If you're not familiar with the basic workbench mechanisms, please see the Getting Started chapter of the Workbench User Guide. |
| </p> |
| <h2> |
| Verifying JRE installation and classpath variables |
| </h2> |
| <ol> |
| <li> |
| If you still see the Eclipse Welcome page, click the arrow icon to begin using Eclipse. |
| </li> |
| <li> |
| Select the menu item |
| <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.ui.preferencePages.Workbench)")'> |
| <img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Goto workbench preferences"> |
| <b>Window > Preferences...</b></a> |
| to open the workbench preferences. |
| </li> |
| <li> |
| Select the |
| <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.debug.ui.preferences.VMPreferencePage)")'> |
| <img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Goto the installed JREs preference page"> |
| <b>Java > Installed JREs</b></a> |
| preference page to display the installed Java Runtime Environments. Confirm |
| that a JRE has been detected. By default, the JRE used to run the workbench will be used to build and run |
| Java programs. It should appear with a checkmark in the list of installed JREs. We recommend that you |
| use a Java SDK instead of a JRE. An SDK is designed for development and contains the source code for the |
| Java library, easing debugging. Additional SDKs can be added by searching the hard drive for installed |
| SDKs. To do so, simply click the <strong>Search...</strong> button and specify a root folder for the search. |
| <p> |
| <img src="../images/qs-1.png" alt="Installed JREs preference page"> |
| </p> |
| </li> |
| <li> |
| Select the |
| <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.ui.preferencePages.Workspace)")'> |
| <img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Goto the workspace preference page"> |
| <strong>General > Workspace</strong></a> |
| preference page. Confirm that the <strong>Build automatically</strong> option is checked. |
| <p> |
| <img src="../images/qs-2.png" alt="Workbench preference page"> |
| </p> |
| </li> |
| <li> |
| Select the |
| <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.BuildPathPreferencePage)")'> |
| <img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Goto the Java build path preference page"> |
| <b>Java > Build Path</b></a> |
| preference page. Confirm that <strong>Source and output folder </strong> is set to <strong>Project</strong>. |
| <p> |
| <img src="../images/qs-3.png" alt="New project preference page"> |
| </p> |
| </li> |
| <li> |
| Select the |
| <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.JavaEditorPreferencePage)")'> |
| <img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Goto the Java editor preferenec page"> |
| <strong>Java > Editor</strong></a> |
| preference page. |
| Confirm that option <STRONG>Report problems as you type</STRONG> is checked. |
| <p> |
| <img src="../images/qs-17a.png" alt="Java Editor preference page"> |
| </p> |
| </li> |
| <li> |
| Click on <strong>OK</strong> to save the preferences. |
| </li> |
| </ol> |
| |
| <p> |
| <img border="0" src="../images/ngrelc.png" alt="Related concepts" > |
| </p> |
| <p> |
| <a href="../concepts/concepts-3.htm">Java projects</a><br> |
| <a href="../concepts/cclsspthv.htm">Classpath variables</a><br> |
| <a href="../concepts/cbuildcp.htm">Build classpath</a><br> |
| </p> |
| <p> |
| <img src="../images/ngrelt.png" alt="Related tasks"> |
| </p> |
| <p> |
| <a href="../tasks/tasks-110.htm">Working with build paths</a><br> |
| <a href="../tasks/tasks-JREs.htm">Working with JREs</a><br> |
| </p> |
| <p> |
| <img src="../images/ngrelr.png" alt="Related reference"> |
| </p> |
| <p> |
| <a href="../reference/ref-19.htm">JRE Installations Preferences</a><br> |
| <a href="../reference/ref-21.htm">Java Editor Preferences</a> |
| </p> |
| |
| </body> |
| </html> |
| |