| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html lang="en"> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. 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"> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title> |
| Assigning the default JRE for the workbench |
| </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" type="text/javascript"> </script> |
| </head> |
| <body> |
| <h1> |
| Assigning the default JRE for the workbench |
| </h1> |
| |
| <p> The default JRE is used for compiling and launching Java programs in all projects |
| unless you specifically <a href="task-choose_config_jre.htm">override the default JRE</a> on a project's build path or |
| on a launch configuration.</p> |
| <p> |
| Here is how you can change the default JRE: |
| </p> |
| <ol> |
| <li> |
| Open 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.svg" alt="Opens the Installed JREs preference page"> |
| <strong>Java > Installed JREs</strong></a> preference page. |
| </li> |
| <li> |
| Check the box on the line for the JRE that you want to assign as the default JRE in your workbench. |
| If the JRE you want to assign as the default does not appear in the list, you must <a href="task-add_new_jre.htm">add it</a>. |
| </li> |
| <li> |
| Click <strong>OK</strong>. |
| </li> |
| </ol> |
| |
| <strong>Note</strong>: Changing the default JRE may cause a build to occur if |
| you have auto build enabled (<strong>Project > Build Automatically</strong> |
| or in 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.svg" alt="Opens the Workspace preference page"> <strong>General > |
| Workspace</strong></a> preference page). |
| |
| <h3 class="related">Related concepts</h3> |
| <a href="../concepts/concept-jdt.htm">Java development tools (JDT)</a> |
| <h3 class="related">Related tasks</h3> |
| <a href="../tasks/tasks-JREs.htm">Working with JREs</a><br> |
| <a href="../tasks/task-add_new_jre.htm">Adding a new JRE definition</a><br> |
| <a href="tasks-deleteJRE.htm">Deleting a JRE definition</a><br> |
| <a href="../tasks/task-choose_config_jre.htm">Choosing a JRE for launching a project</a> |
| <h3 class="related">Related references</h3> |
| <a href="../reference/preferences/java/debug/ref-installed_jres.htm">Installed JREs preference page</a> |
| </body> |
| </html> |
| |