`
zhoukai
  • 浏览: 17843 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

(转载)applet非官方历史

阅读更多
http://flexblog.faratasystems.com/2010/08/10/the-unofficial-history-of-java-applets

The unofficial history of Java applets
August 10, 2010 at 10:27 pm

Fifteen years ago there was no iPhone and Android. Web browsers were hot. Netscape market share was over 90% – they didn’t have competition.The situation changed when Microsoft has introduces Internet Explorer (me too, me too). Back in 1998, there was an infamous law suite between Microsoft and Sun Microsystems – the former started quietly introducing their own class libraries to Java breaking the write-once-run-anywhere idea of Sun that back then seemed to be achievable. Sun won that $10B law suite. But as the saying goes, they won the battle but lost the war.
Angry Microsoft refused to include upgrades to JVM that came with Internet Explorer, which seriously hurt applets popularity – the end user couldn’t just open a Web page to see the applet that required, say 1.3 version of JVM. They’d need to first download the proper version of JVM, and only then the applets that were written with the assumption that JVM 1.3 was available would work. The process of downloading the right JVM Plug-in was a multi-step process, and a truck driver from Alabama wouldn’t be able to go through it.
Update. Two days after I published this blog, the news broke that Oracle decided to sue Google for the “wrong use” of Java on Android platform. Does Larry Ellison have short memories? Sun literally killed Java on the desktop because of that old law suit with Microsoft. In the worst case scenario, if Oracle will win this law suit, Google may do the same thing as Apple did on the iOS and ban Java from this very promising Android platform. Given the fact that five years from now large portion of the applications will consist of a mobile device communicating with the cloud, Java will be seriously damaged. Imagine how many top-notch developers can be added to Java and JavaFX engineering teams at Oracle if the money spent on lawyers would be saved? Oracle, please stop!
High penetration of the required runtime environment and the ease of its upgrade are the crucial moments for any Web-based technology. Adobe Flash Player shines in this area today (sorry, Steve). Flash Player is also a virtual machine with a small memory footprint (1.5Mb), and its installation takes under 20 seconds after one button click. For years, the size of the JVM Plug-in was about 16Mb and install was complicated for a non-programmer, and (the rumor has it) – it’s a lot smaller now.
This situation has changed after the release of Java 6 update 10, which includes so called next-generation Java Plug-in.  Now applets don’t run in the JVM packaged with the Web browser, but run in a separate JVM launched by the Java Plug-in. The applet still appears in the Web browser’s window, but now it doesn’t depend on the goodwill of the browser vendor to include the latest Plug-in. You can read more about this Java Plug-in at https://jdk6.dev.java.net/plugin2.
The other major change introduced in the next-generation Java Plug-In is ability to launch Java applets directly from JNLP (Java Network Launch Protocol) files, which in the previous releases were used only in Java Web Start technology that allowed local deployment of the applications over the network. As of Java 10.6.10 you can use the JNLP meta descriptors to launch applets too. JNLP support is described in details at http://www.oracle.com/technetwork/java/javase/index-142562.html.
Earlier versions of HTML standard included the tag <applet> to incorporate Java applets into HTML page. But as of HTML 4.01 this tag has been deprecated and you should use the tags <object> for users who like Internet Explorer or <embed> for other Web browsers. But Oracle, the company behind Java, recommends using <applet> for Web pages accessed through the Internet and <object> or <embed> for intranet-based Web sites. The main reason being that Web browser vendors are infamous for being inconsistent of implementing HTML standards, and it’s safer to use tried and true <applet> tag to get predictable look and feel of the Web pages that host Java applets. But intranet is a more controlled environment. You can read about the differences of embedding applets with these tags at http://download.oracle.com/javase/6/docs/technotes/guides/plugin/developer_guide/using_tags.html. When young and old kids (sorry Steve) tell that HTML 5 will change the world, it’s funny.
The deployment options for applets have been extended as of release of Java 6 update 10. To learn all the options of applet deployment in depth, refer to the Oracle document titled “Java Rich Internet Applications Deployment Advice” available at http://download.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html.
What’s the next step in applet’s evolution? You’ll be creating UI for the Web-based applications with a relatively new language called JavaFX. In a month, I’ll be trying to attend every JavaFX technical session at JavaOne conference to see if it’ll become a real competition to Adobe Flex and Microsoft Silverlight. By the way, anyone heard any noise about Apple not letting JVM on the iPhone? Neither did I. Do you know why?
If you’re not into Java applets, consider attending our Third Annual Enterprise Flex Symposium in New York City. It’s a small event where attendees and presenters will talk turkey about Adobe Flex.

Yakov Fain
分享到:
评论

相关推荐

    Applet

    例如,Applet不能随意调用其他程序、进行文件读写、加载本地库或与非提供Applet的主机建立socket连接。这些限制确保了用户在浏览网页时的安全性。 Applet的生命周期包括了四个关键方法:init(), start(), stop()和...

    java applet实例讲解

    Java Applet是Java技术在...总结,Java Applet是Java历史上的一个重要篇章,虽然现在已被其他技术取代,但它的概念和技术仍值得学习和理解。通过实践简单的Applet实例,你可以更好地掌握Java编程和Web开发的基本原理。

    java的applet实例

    总之,Java Applet虽然现在不是主流的Web开发技术,但它在Java历史上的地位不容忽视。对于初学者来说,理解Applet的工作原理有助于更好地掌握Java的网络编程概念,同时也能为理解其他现代Web技术打下基础。

    applet例子

    **Applet例子** 在Java编程领域,Applet是一种特殊的Java程序,它可以在Web...虽然现代Web开发更倾向于使用JavaScript和其他技术,但理解applet的历史和工作方式对于学习Java Web编程的历史和技术演进具有重要意义。

    Brew Applet 高通官方帮助文档

    【Brew Applet 高通官方帮助文档】是高通公司为开发者提供的详细指南,旨在帮助他们理解和使用Brew Applet技术。Brew Applet是一种基于高通BREW(Binary Runtime Environment for Wireless)平台的应用程序,它允许...

    Java Applet 入门教程

    总之,Java Applet作为早期的Web交互技术,对于理解Java的历史和Web应用的演进具有重要意义。虽然现在已不常用,但学习它的概念和工作原理仍然有助于理解现代Web开发中的类似概念。通过深入学习和实践,可以更好地...

    Applet小游戏 Applet小游戏 Applet小游戏

    Applet是Java类的子类,通常是`java.applet.Applet`或其子类,如`javax.swing.JApplet`。它们通过`&lt;applet&gt;`标签或者`&lt;object&gt;`标签在HTML页面中被引用,从而在客户端(用户的浏览器)中执行。Applet的生命週期包括...

    Java Applet实例讲解

    然而,理解Java Applet对于学习Java的历史和Web客户端编程的基本概念仍然是有价值的。 在提供的"applet"压缩包文件中,可能包含了一些Java Applet的示例代码和教程资源。通过研究这些例子,你可以更深入地理解如何...

    做一个applet测试

    因此,这种技术更多地适用于教学和历史回顾,而非实际开发项目。 随着技术的发展,Applet已经被Java Web Start(JNLP)和现代的Web技术(如HTML5的WebAssembly、JavaScript框架)所取代。然而,理解Applet的工作...

    java applet程序案例

    尽管现在Applet已不再主流,理解其工作原理对学习Java的历史和技术演进仍有价值。 在Java Applet实例编程中,你可能会遇到以下知识点: 1. **Java Applet基础**:了解Applet的生命周期,包括初始化、加载、启动、...

    applet 学习资料

    - `stop()`:Applet失去焦点或变为非活动状态时调用,停止Applet的执行。 - `destroy()`:Applet即将销毁时调用,释放所有资源。 Applet中的绘图操作主要依赖于`Graphics`类,提供了诸如`drawString()`、`drawLine...

    Applet版JFreeChart演示

    虽然现代Web开发倾向于使用更现代的技术,如JavaScript和WebGL,但理解这种传统的Java图形编程方式对于理解Web应用程序的历史和演变仍然很有价值。此外,JFreeChart的知识对那些需要在非Web环境中生成高质量图表的...

    Applet类及应用

    随着技术的发展,尽管现代Web开发更多地转向了HTML5和JavaScript,但了解Applet仍然具有一定的历史价值和学习意义。 #### 二、Applet基础知识 1. **定义**:Applet是Java的一种应用形式,它被嵌入到HTML页面中并在...

    JavaApplet与JavaScript

    ### JavaApplet与JavaScript #### 6.1 JavaApplet ##### 6.1.1 JavaApplet概述 ...尽管如此,了解 JavaApplet 和 JavaScript 的工作原理仍然是很有价值的,特别是在维护旧的 Web 应用程序或学习 Web 开发历史方面。

    Start Applet Demo

    尽管如此,了解Applet的工作原理对于理解Web开发的历史以及现代Web技术的演变仍然是有价值的。 【动态调用Applet】涉及到的主要知识点包括: 1. **Java Applet**:Applet是Java小应用程序,它可以嵌入到HTML页面中...

    applet教程

    总之,虽然Applet在当前的Web开发中已经不是主流,但它仍然是理解Java客户端技术历史和Web交互性发展的重要部分。通过学习Applet,开发者可以更好地理解现代Web技术的发展历程,并从中汲取经验教训。

    Applet入门学习

    虽然现代Web开发中已较少使用Applet,但对于学习Java历史和技术演进的程序员来说,理解Applet仍然是重要的。 Java Applet是基于Java平台的小程序,它们嵌入在HTML页面中,由支持Java的网络浏览器(如早期的Internet...

    java applet 简单案例

    Java Applet是Java技术在早期Web开发中的一种应用方式,它允许开发者在浏览器中嵌入可执行的小程序,为用户提供动态交互的Web页面体验。这个简单的案例将带你深入理解Java Applet的基础概念、工作原理以及如何创建和...

    java Applet技术文档

    - Applet的历史:Java Applet在1995年随着Java的发布而出现,旨在实现“写一次,到处运行”的跨平台目标,尤其是在Web浏览器中的应用。 2. **Applet生命周期** - Applet的生命周期包括初始化、加载、显示、暂停、...

    在Java Applet中实现动画.rar_applet_java Applet

    Java Applet是Java技术在Web浏览器中运行的一种小程序,它为网页添加了交互性和动态性。本教程将探讨如何在Java Applet中实现动画效果,让网页内容更加生动有趣。 首先,理解动画的基本原理至关重要。动画是通过...

Global site tag (gtag.js) - Google Analytics