Skip to content

Applet API is being removed #61

Open

Description

@jewellgm

The Applet API was deprecated for removal in Java 17, and will most likely be removed completely in Java 25. There are classes within OpenMap that utilize these APIs either directly or indirectly. Specifically, the Environment class imports and uses both java.applet.Applet and javax.swing.JApplet, which would cause an initialization error. Of course, the OpenMapApplet class utilizes the API, but would only be utilized in environments where a browser that supports the Java plugin exists.

Edit: Officially targeted for removal in Java 26

Activity

  1. jewellgm commented on Apr 7, 2025

    @jewellgm
    Author

    In addition to the removal of the Applet API, the Security Manager was completely disabled in Java 24. This means that applets would not run in a sandboxed environment, allowing the applet to execute any arbitrary code in a browser that still supported the Java plugin.

    Edit: the applet deployment tools (browser plugin, appletviewer, Java Web Start) were removed in Java 11, so even if using an old browser it would not be possible to launch an applet using any Java version >= 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions