Irfan’s Corner on the Web On Mac, Linux, Grid, Virtualization and Software Technology

27Nov/068

Has AJAX killed Java Applets?

Java introduced the notion of Browser based applications, in the form of Java applets, which included nuances of feature rich desktop applications within a browser! It was a huge success and widely popular during the dot com bubble, but now I rarely hear about new nifty applets? Web Start gained some traction but the furor over it has died down. Rather another technology has taken the reigns now: AJAX, asynchronous Javascript and "XML". AJAX is the marriage of server side scripting languages such as perl or php and client side scripting language such as Javascript perhaps a little flash, imbued into HTML and some little XML or some other mechanism to transfer information, we get a powerful framework to create desktop-like applications on the browser! AJAX has taken computing by storm. The wave of AJAX based startups, acquisitions and mergers has already begun! Are we heading towards another bubble or is this one for real?

AJAX applications are a definite improvement over previous flickering page based applications, and what more, these applications are NOT memory savvy as Java applets used to be, and no runtime environment is required to run such applications, just a compatible, updated browser is enough. Nowadays many more innovative AJAX applications are being built than Java applets, and people are accepting AJAX more readily than ever. This year for the first time I heard people doing AJAX based undergraduate degree projects in Pakistan, there is talk in my research lab of developing AJAX based intefaces to some of the distributed applications developed here. Not long ago, browser based application used to be the exclusive domain of Flash and Java Applets.

So what was wrong with Applets? I don't need to list any reasons, you can check out this poll which was conducted in Java.net, the official Java forums, and complaints ranged from: Too hard to deploy to to slow in loading!

So we can safely say that AJAX has killed Java applets, a significant portion of standard Java.

From Google Trends we can see how much interest people have in the three technologies, Java Applets, Webstart and AJAX, and compare the news reference volume certainly AJAX has ruled the headlines in recent months and years.

viz.png

As wireless connectivity expands and gets increasingly cheaper, more and more mobile devices will get connected, once this happens the future of J2ME would look bleak. I personally have started using AJAX based services like Airset.com, which provides an intuitive calendar solution that helps you also to remain in touch with your friends and family. The built- in calendar program which came with the PDA, was developed in J2ME and it lacked a lot functionality, and I found it a bit clunky to use. Another drawback of J2ME applications which you won't find in AJAX applications is the mutual incompatibilities between mobile devices. Like I can purchase a game from the internet designed for Symbian mobiles, but when I try to run it in a cellphone using symbian it won't run! After a little bit of investigation it turns out that the game supports Nokia symbian mobiles, and some certain sets NOT Motorola ones, like wise try running a J2ME game for the Motorola E680i on a Nokia N92 it wont work!

The greatest impediment to AJAX of course is the lack of connectivity, once connectivity is seamless and universal, than people will stop using native applications like the one developed in J2ME and start using AJAX ones.

One complaint I have about AJAX services is that many of them run poorly on cellphone/PDAs, this is certainly not a problem with AJAX itself, because services such as Gmail and Airset.com, prove that AJAX can run on supported browsers on mobile devices if the service is well developed.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Twitter
  • http://wordsngadgets.wordpress.com/ Colin

    A very interesting article. I noticed this move away from Java a few months back.

    There are certainly some good examples out there of how powerful AJAX can be. Good to see some Microsoft sites starting to move over to.

  • http://putradi.wordpress.com/ putradi

    well i guess each has its own Power. But, honestly … i prefer to use Java …

  • Shuaib

    A very interesting analysis. I believe AJAX indeed will give Java a run in the web based applications domain. The very reason that Java is still non open source is good enough to migrate to AJAX. The technical superiority of AJAX as compared to Java applets is of course, worth the most though.

  • http://irfanhabib.wordpress.com/ irfanhab

    Shuaib you must be mistaken, or sleeping the last whole month, Java has been Open sourced! But I do agree AJAX is completely open standard based, and certainly should be supported just because of this

  • http://shuaibkhan.wordpress.com Shuaib

    What the…! No body tells me anything around here. Let me google…

  • http://smallpanda.wordpress.com/ smallpanda

    Wasn’t Java Applet dead way back in 2000!! As a Java developer, I had stopped using it long back. Flash Actionscript was a better choice for me.

    In the next decade, Script oriented languages going to rule web tier. AJAX will be the key ingredient in such languages.
    However there is an attempt by Google to use AJAX with Java Swing with their GWT API. That is a nice API.

  • http://www.visualwebgui.com Guy

    Hi,

    I would like to introduce you to a new technology called http://www.visualwebgui.com which provides a unique way to create AJAX applications by providing full WinForms like development including design time support. The architecture eliminates most of AJAX soft spots by simply
    returning back to server based computing but still having a dynamic AJAX based UI. It also has been said by developers to boost productivity to R.A.D. levels with out limiting your options. I think that many thing that were once achieved using applets can benefit from using this technology.

    Guy

  • Anadim

    Irfan,

    You mentioned that some universities are offering AJAX based undergraduate degrees in Pakistan. Can you please let me know the names of those universities so that I can get hold of their engineers? We are looking for very smart Javascript and Ajax engineers (desktop application based development) in Islamabad.
    Thanks