Oracle Announces End Of Java Applet Support
Thursday, 28 January 2016

It really is the end of an era. Oracle has announced that Applets are deprecated in JDK 9 and will be removed from the JDK and JRE in the future. 


 

You may cheer and look forward to the day that all browser plugins are long gone, but the Java Applet deserves more respect. It is arguable that Java got its big break because of Applet technology. It essentially made Java, not JavaScript, the language of the web. Back in the day when Applets were new, the web was a very different place - things didn't move. A Java Applet could be used to bring animation and interaction into the browser and most people thought it was a killer, must-have, technology. 

Essentially Java Applets made Java a success. 

Java Applets run in a sandbox but a signed Applet could do just about anything. A security risk, yes, but rather than fixing the security we have just thrown the whole thing out. 

Given that nearly all browser makers are already getting rid of plugin support, you can argue that Oracle really didn't have any choice but drop the feature. The argument is that plugins have to connect deeply to the browser's architecture and this makes it too difficult to keep everything up-to-date and secure. In the case of the Java plugin things were even more complex because of the need to use the JVM etc to actually run the code. Keeping all of this software up-to-date was a task beyond most users. So plugins of all types, including Java, had to go.

The only common browser with any sort og ongoing support for plugins is IE 11, which is currently in maintenance only mode. It is ironic that the last browser to support Java is Microsoft's, given the love hate relationship there has been between the two.

The loss of the plugin is going to be a big problem. A lot of software has been written as Java Applets. Banks and big corporations found the ability to use Java on their backend servers and in the client too good to ignore. There are also lots of sophisticated web based programs that rely on Java Applets and these are just going to become unusable.

The suggested upgrade path is to make use of Web Start. This allows you to run a Java application downloaded from the web in a sandbox. It sounds a lot like Applet technology, but the big difference is that it doesn't integrate with the browser. When the user launches a Web Start app, either from the browser or from the desktop, it runs in a separate window. To make use of Web Start the user also has to install a JNLP client - usually the Java Web Start client. This can be done along with launching the first Web Start app, i.e. the user can be given the choice of downloading and installing the JNLP client along with the Web Start app of that they want to run. You can think of the JNLP client as a sort of Java web browser in the sense that it downloads and renders a JNLP file sent by the server in much the same way that a browser renders HTML. 

The good news is that, in principle, a JNLP client will just run an existing Applet with no changes. All you need to to is create a JNLP file to launch the Applet and load any resources it might need.

Let us hope that it really is this trouble free and that a lot of existing and still useful code is rescued.

 javaplatformicon

More Information

Moving to a Plugin-Free Web

Related Articles

Even Adobe Is Giving Up On Flash 

Death Of Flash And Java Applets       

Microsoft Dropping ActiveX And VBScript In Edge

Google Gets Closer To Killing Old Style Browser Plugins

Goodbye Google Maps API for Flash       

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin

 

Banner


Python 3.13 Is Here
09/10/2024

As time ticks on, the changes to the Python language become fewer and this makes it easier to upgrade. With this release the emphasis is on performance rather than new features.



Does AI Help or Hinder?
02/10/2024

After early indications that AI-powered coding assistants increase developer productivity, findings are emerging that challenge this and suggest code quality may be reduced by their use. At the same t [ ... ]


More News

 

kotlin book

 

Comments




or email your comment to: comments@i-programmer.info

 

Last Updated ( Thursday, 28 January 2016 )