org.eclipse.jdt.internal.appletlauncher - Applet Launching Configuration
Purpose

Applet Launching Configuration. The plugin is an experimental launching configuration for applets inside Eclipse.

The org.eclipse.jdt.internal.appletlauncher plugin allows the users to start applets inside Eclipse as easily as java applications. They can run or debug their applets seamless.

Notice: This plugin is only supported on the Eclipse 2.0 development stream.

Install

Eclipse 2.0

Features

The Applet Launching Configuration has the following features:

  • Create a temporary HTML file to launch the appletviewer. The temporary file is created in the output folder of the project and it is deleted when the appletviewer is closed.
  • Use a java policy file which allows all permission in order to access the local file system.
  • Users can define their own policy file if they want something less permissive. This is project based and the java policy file name has to be java.policy.applet in the root of the project.
  • Allows the user to enter the settings easily.
Using The New Launching Configuration

To use the applet launching configuration follow these steps to set-up your project:

  1. Create a Java project
  2. Create a class which extends java.applet.Applet or javax.swing.JApplet
An example: Sun JDK Animator Demo
  1. Start a new workspace
  2. Switch to the Java perspective
  3. Create a Java Project called Sun Animator Demo
  4. Go to the properties of this project and add a source folder called 'src'. It will ask you for using 'bin' as the output folder. Simply say Yes. You should have something similar to this screen shot.
  5. Select the source folder 'src' and open the import wizard to get the source and the resources of the Sun Animator Demo. Select the files as on the picture.
  6. When this is done, your project should look like this.
  7. Select the class Animator.java and use the shortcut Java Applet.
  8. You get the applet launcher wizard. The main type and the project name are already set.
  9. Click on the parameter tab and enter the following values (see image)
    To enter a parameter, click on the Add button and enter the two fields in the dialog. Then press OK.
  10. When this is done, you can specify if you want to save your configuration locally or if you want to share it, by using the common tab. I won't detail this part, because it is identical to other configurations.
  11. Click on apply and Run or Debug according to the type of launch you choose.
    It will open an appletviewer window and run the applet.
  12. It is the same steps for any applet.
To Do

The Applet Launching Configuration is work in progress, here are some to do items:

  • Allow the user to specify its own policy file. For now the name has to be java.policy.applet.
  • F1 help support
  • Improve this documentation and update it for the latest version (> 20020530)
If you have any idea, suggestions, bug reports, contact Olivier Thomann.