简体   繁体   English

Java Applets的未来是什么样的?

[英]What does the future look like for Java Applets?

In the past, java applets were unreliable, due to the Microsoft/Sun JVM split. 过去,由于Microsoft / Sun JVM拆分,java applet不可靠。 Flash took over, and Java applets became known for browser crashes and performance issues. Flash接管了,Java applet因浏览器崩溃和性能问题而闻名。

Now that the JVM is enjoying resurgence as a platform for dynamic languages like Clojure and Scala, what is the current and future outlook for the JVM for in-browser applets? 既然JVM作为Clojure和Scala等动态语言的平台正在复苏,那么浏览器内applet的JVM目前和未来前景如何?

  • Are browser vendors continuing to address stability and performance issues? 浏览器供应商是否继续解决稳定性和性能问题?
  • How much market penetration does Java have? Java有多少市场渗透率?
  • Given the JVM's resurgence, will applets also see any kind of resurgence as an alternative to Flash, or are they going to become obsolete entirely despite the JVM's success? 鉴于JVM的复苏,applet还会看到任何类型的复兴作为Flash的替代品,或者它们是否会在JVM取得成功的情况下完全过时?

(Yes, HTML5 is the way forward for many, many things. It will continue to displace Flash and Java in the browser wherever it is most appropriate. That's not what this question is about.) (是的,HTML5是很多很多东西的前进方向。它将继续取代浏览器中最适合的Flash和Java。这不是这个问题的关键。)

Flash turned out to achieve what Applets tried to, and has done very well so. Flash最终实现了Applets所尝试的功能,并且做得非常好。 Small initial download, programs starts fast and run inside a web page. 小的初始下载,程序快速启动并在网页内运行。

That said, the abilities to launch applets were enhanced with the Java 6 update 10 revamping of the JNLP specification of Java WebStart, but I have not given it a closer look (we use Java WebSTart extensively for applications, not applets), and I suspect others haven't either. 也就是说,通过Java WebStart JNLP规范的Java 6更新10改进了启动applet的能力,但我还没有仔细研究过(我们广泛使用Java WebSTart用于应用程序,而不是applet),我怀疑其他人也没有。

With JavaFX Sun has improved the Applet plug-in in term of stability and start-up time. 借助JavaFX,Sun在稳定性和启动时间方面改进了Applet插件。 The latest browsers support the new Java plug-in. 最新的浏览器支持新的Java插件。 It's now also easier to create it's own start-up screen with progress bar. 现在,使用进度条创建自己的启动屏幕也变得更加容易。

In term of deployment 60% of people have Java 6 installed ( riastats.com ), 93% have Flash 10 installed 在部署方面,60%的人安装了Java 6( riastats.com ),93%安装了Flash 10

In term of usage, my opinion is that users don't care the technology used. 在使用方面,我的观点是用户不关心所使用的技术。 They care about about things like: does it work? 他们关心的事情是:它有效吗? does it look good? 它看起来不错吗? does it start-up fast? 它启动快吗? does it do something useful/fun? 它做了一些有用/有趣的事情吗? is the application easy to use? 该应用程序易于使用?

Java applets are dead. Java小程序已经死了。 The lack of broadband early on contributed mightily to it's early demise. 早期缺乏宽带对其早期消亡做出了巨大贡献。 The fact that the Windows JVM was locked to a 1.1 version for so long was the other nail. Windows JVM长期被锁定到1.1版本的事实是另一个问题。

Java webstart provides something far better - on demand delivery of Java apps, caching, and automatic updates, without any of the browser integration woes. Java webstart提供了更好的东西 - 按需提供Java应用程序,缓存和自动更新,没有任何浏览器集成问题。

Applets are dead. 小程序已经死了。 XMLHttpRequest came along and fulfilled most of the reason people were using applets to begin with. XMLHttpRequest出现并实现了人们开始使用applet的大部分原因。

To put it simply, you reach a lot of people through mobile devices now, and you'll be reaching people through mobile devices more in the future. 简而言之,您现在可以通过移动设备与很多人联系,并且您将来会更多地通过移动设备与人们联系。 Mobile device OS makers don't want to support the JVM on their mobile devices, and I doubt Oracle will want to either. 移动设备操作系统制造商不希望在他们的移动设备上支持JVM,我怀疑甲骨文是否也愿意。

Stick with the standards. 坚持标准。 HTML5 and Javascript is still the way to go if you want to make a web app. 如果你想制作一个网络应用程序,仍然可以使用HTML5和Javascript。

JVM languages are definitely enjoying a resurgence, and I'd imagine they continue to grow in popularity, but they will not (and, AFAIK, are not) using them to write applets. JVM语言肯定会复苏,我想它们会越来越受欢迎,但它们不会(而且,AFAIK,不会)使用它们来编写applet。

Applets aren't integrated into the system, they're not well supported, and they're nasty resource hogs. 小程序没有集成到系统中,它们得不到很好的支持,而且它们是令人讨厌的资源浪费。 Keep the JVM on your server where you get the full benefit from the JIT and the rest of the power of the JVM. 将JVM保留在服务器上,以便从JIT和JVM的其他功能中获得全部好处。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM