| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> | 
 | <html> | 
 |   <head> | 
 |     <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 program | 
 |     </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 Package Explorer, select the Java compilation unit or class file you want to launch. | 
 |       </li> | 
 |       <li> | 
 |         Select | 
 |         <strong>Run > Run As > Java Applet </strong>in the workbench | 
 |         menu bar. <br> | 
 |         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> | 
 |     <p> | 
 |       <img border="0" src="../images/ngrelc.gif" alt="Related concepts" width="159" height="27"><br> | 
 |        <a href="../concepts/concepts-10.htm">Debugger</a> | 
 |     </p> | 
 |     <p> | 
 |       <img border="0" src="../images/ngrelt.gif" alt="Related tasks" width="159" height="27"><br> | 
 |        <a href="../tasks/tasks-131.htm">Re-launching a program</a><br> | 
 |        <a href="../tasks/tasks-126.htm">Running and debugging</a><br> | 
 |        <a href="../tasks/tasks-136.htm">Stepping through the execution of a program</a><br> | 
 |     </p> | 
 |     <p> | 
 |       <img border="0" src="../images/ngrelr.gif" alt="Related reference" width="159" height="27"><br> | 
 |       <a href="../reference/ref-51.htm">Debug view</a><br> | 
 |        <a href="../reference/ref-view-package-explorer.htm">Package Explorer</a><br> | 
 |     </p> | 
 |     <p> | 
 | <a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" width="324" height= | 
 |       "14"></a> | 
 |     </p> | 
 |   </body> | 
 | </html> | 
 |  |