Launching a Java applet

If your Java program is structured as an applet, you can use the Java Applet launch configuration.  This launch configuration uses information derived from the workbench preferences and your program's Java project to launch the program.

  1. In the Package Explorer, select the Java compilation unit or class file you want to launch.
  2. Select Run > Run As > Java Applet in the workbench menu bar. 
  3. Your program is now launched.

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.)

You can launch an applet from an open editor by using Run > Run As > Java Applet in the editor's popup menu.  

Related concepts
Debugger

Related tasks
Relaunching a program
Running and debugging
Stepping through the execution of a program

Related reference
Debug view
Package Explorer

Copyright IBM Corporation 2000, 2002. All Rights Reserved.