The era of Java Applets is officially drawing to a close as the Java Development Kit (JDK) prepares for the removal of the Applet API. According to the JDK Enhancement Proposal, this API has been deprecated for removal for some time and is now considered obsolete. Modern web browsers and the latest JDK releases no longer support applets, rendering the API functionally irrelevant. While a specific JDK release for the removal hasn’t been finalized, the move is part of a broader effort to streamline Java and eliminate outdated components.
Several factors underscore the decision to retire the Applet API. For one, the JDK no longer includes an implementation of the API, making it impossible to run applets directly through the toolkit. Additionally, mainstream web browsers, which once served as the primary environment for applets, have discontinued their support for this technology. The removal of the appletviewer tool in JDK 11 further reduced the utility of applets, as developers could no longer test them independently of browser plugins. The impending removal of the Java Security Manager in JDK 24, which facilitated secure applet execution by sandboxing untrusted code, seals the fate of this long-dormant API.
Java applets were first deprecated in JDK 9, released in September 2017, marking the beginning of the end for a technology that once held promise as a bridge between desktop and web applications. However, the rise of JavaScript, alongside advancements in web browsers, gradually rendered applets obsolete. Security concerns also plagued applets throughout their lifecycle, further discouraging their use and contributing to their decline in popularity.
The removal of the Applet API is a symbolic moment in the evolution of Java, signaling the transition from older paradigms to modern development practices. While applets played a significant role in early web development, their limitations and the emergence of more robust alternatives have rendered them a relic of the past. This move simplifies the JDK, aligning it with current standards and paving the way for innovation in other areas of the Java ecosystem.