| <!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, 2011. 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> |
| Launching a Java applet |
| </title> |
| </head> |
| <body> |
| <h1> |
| Launching a Java applet |
| </h1> |
| <p>If your Java program is structured as an applet, you can use the <strong> Java |
| Applet </strong>launch configuration. This launch configuration uses information |
| derived from the workbench preferences and your program's Java project to launch the program. |
| </p> |
| |
| <ol> |
| <li> In the <strong>Package Explorer</strong>, select the Java compilation unit |
| or class file containing the applet you want to launch. </li> |
| <li>Press the <strong>Run</strong> [ <img src="../images/org.eclipse.debug.ui/etool16/run_exc.svg" width="16" height="16" alt="The Run button"> |
| ] button in the workbench toolbar or select <strong>Run > Run</strong> |
| from the workbench menu. Alternatively, select <strong>Run As > Java Applet</strong> |
| from the <strong>Package Explorer</strong> pop-up menu, select <strong>Run |
| > Run As > Java Applet </strong>in the workbench menu bar, or select |
| <strong>Run As > Java Applet </strong>in the drop-down menu on the <strong>Run</strong> |
| tool bar button. </li> |
| <li> Your program is now launched. </li> |
| </ol> |
| <p>You can also launch a Java applet by selecting a project instead of the |
| compilation unit or class file. You will be prompted to select a class |
| from those classes that extend Applet. (If only one applet class is |
| found in the project, that class is launched as if you selected it.)</p> |
| <h3 class="related">Related concepts</h3> |
| <a href="../concepts/cdebugger.htm">Debugger</a> |
| <h3 class="related">Related tasks</h3> |
| <a href="task-relaunch_program.htm">Re-launching a program</a><br> |
| <a href="task-running_and_debugging.htm">Running and debugging</a><br> |
| <a href="task-stepping.htm">Stepping through the execution of a program</a> |
| <h3 class="related">Related references</h3> |
| <a href="../reference/views/debug/ref-debug_view.htm">Debug view</a><br> |
| <a href="../reference/views/ref-view-package-explorer.htm">Package Explorer</a> |
| </body> |
| </html> |
| |