为什么在JDK 9中不推荐使用applet? [英] Why were applets deprecated in JDK 9?

查看:1785
本文介绍了为什么在JDK 9中不推荐使用applet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Oracle发布的一篇文章中读到,他们将在JDK 9中将 Applet 类标记为已弃用。我对applet的经验不多;我只写了一些来理解基础知识。

I have recently read in an article posted by Oracle that they are going to mark the Applet class as deprecated in JDK 9. I have little experience with applets; I have only written some to understand the basics.

为什么他们不受欢迎,他们弃用的主要原因是什么?

Why are they unpopular, and what is the main reason for their deprecation?

推荐答案

Java团队在文档 从Java Applet迁移到无插件的Java技术 。在第4页上,有以下执行概述

The Java team gave its complete set or reasons, alternatives etc. in the document Migrating from Java Applets to plugin-free Java technologies. On page 4, there is the following Executive Overview:


现代浏览器供应商致力于限制或减少在他们的产品中支持Flash,Silverlight和Java等插件,依赖Java浏览器插件的应用程序开发人员需要考虑其他选项。目前依赖浏览器插件的Java开发人员应考虑从Java Applet迁移到无插件的Java Web Start技术。

With modern browser vendors working to restrict or reduce the support of plugins like Flash, Silverlight and Java in their products, developers of applications that rely on the Java browser plugin need to consider alternative options. Java developers currently relying on browser plugins should consider migrating from Java Applets to the plugin-free Java Web Start technology.

只有浏览器支持浏览器中的Java才有可能供应商致力于支持基于标准的插件。到2015年底,许多浏览器厂商已经删除或宣布了删除基于标准的插件支持的时间表,而有些则引入了专有的浏览器专用扩展API。因此,Oracle计划在JDK 9中弃用Java浏览器插件。

Supporting Java in browsers is only possible for as long as browser vendors are committed to supporting standards based plugins. By late 2015, many browser vendors had either removed or announced timelines for the removal of standards based plugin support, while some are introducing proprietary browser-specific extension APIs. Consequently, Oracle is planning to deprecate the Java browser plugin in JDK 9.

已弃用的插件技术将从Oracle Java Development Kit(JDK)和Java Runtime中完全删除环境(JRE)在未来的Java版本TBD中。 Java Web Start应用程序依赖于浏览器插件,不会受到这些更改的影响。

The deprecated plugin technology will be completely removed from the Oracle Java Development Kit (JDK) and Java Runtime Environment (JRE) in a future Java release TBD. Java Web Start applications do not rely on a browser plugin and will not be affected by these changes.

这篇关于为什么在JDK 9中不推荐使用applet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆