Last Updated on
applet HTML element, which was used in the past to embed Java applications in an HTML document, was introduced and simultaneously deprecated in favor of the
object element when the HTML 4.01 specification was released in December of 1999. However, that didn't stop developers from using the element which had been made available and functional by the release of the Java browser plugin in 1995.
The trend in recent years has been for web browsers to remove support for plugins. As a result, Java's days as a web programming language are effectively over. Java-based applications designed to run in the browser must be transitioned to alternate technologies and frameworks or face a complete lack of browser support.
- 1 Java Applets are Obsolete
- 2 Potential Replacements for Java Applets
- 3 The Future: A Plug-In Free Web
- 4 Related Elements
Java Applets are Obsolete
There are two distinct ways in which applets have been deprecated:
appletelement was deprecated in HTML 4.01 and rendered entirely obsolete by HTML5.
- Support for the Java browser plugin has been dropped by virtually all leading web browsers.
The “ Element: Introduced and Simultaneously Deprecated
object element could also be used to embed Java objects. As a result, the
applet element was deprecated just as quickly as it was introduced in HTML 4.01 in favor of the more broadly useful
While some browsers do still recognize the
applet element, others do not. Those that do still recognize the
applet element may discontinue support at any time now that HTML5 has obsoleted the tag. In other words, if you're still using the
applet element, switch to an alternate technology immediately.
Java: Still Popular, Just Not for the Web
Java is a very popular programming language for custom enterprise applications, operating systems, and system utilities. However, it has suffered from a long history of security issues when deployed on the web. In addition, it's status as a plugin technology has made it a target of web standards advocates and security specialists who are pushing quite successfully for a completely plugin-free web experience.
Java isn't going away. It will still be used widely for enterprise applications, operating systems, and much more. According to some surveys, Java may be the most in-demand programming language when all programming applications are taken into account. However, Java's days as a programming language for web-based applications are behind us.
Potential Replacements for Java Applets
If you have Java-powered content and resources on your website embedded using the
applet element, you should switch to the
object element immediately. You also need to start investigating a complete transition over to supported web technologies.
You have two different options for transitioning away from embedded Java applets:
- Replace the Java applet with a web application written in a programming language with broad browser support.
- Transition the web-based applet into a full Java Web Start web-launched desktop application.
Web-Based Applications: Transition Away from Java
Web-Launched Desktop Applications: Transition to Java Web Start
If your application is robust enough to run as a full desktop application, it's possible to transition away from running the Java applet in a web browser to running it as a stand-alone application. The framework Oracle has developed to create Java applications that can be launched from a link embedded in a web page is called Java Web Start.
Migrating a Java Applet to a Web Start environment is usually relatively simple. The thing you'll have to keep in mind is that the new desktop application will run completely independently of the website that launched it. If you have been using Java to run a web-based application embedded in your website, there simply isn't a way to continue doing that for the long term, and if you want your application to run as part of a website you must switch to an alternate technology.
The Future: A Plug-In Free Web
The days of web applications powered by plugins like Java are behind us. While some plugins will continue to enjoy niche use to meet specific needs, the vast majority of modern web pages and applications will be built using languages that are fully supported by a plugin-less browser.