gpt4 book ai didi

java - 为什么在 JDK 9 中弃用了小程序?

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:31:36 25 4
gpt4 key购买 nike

我最近在 Oracle 发表的一篇文章中读到,他们将在 JDK 9 中将 Applet 类标记为已弃用。我对 applet 没有什么经验;我只写了一些以了解基础知识。

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

最佳答案

小程序在几年前非常流行,但现在浏览器世界发生了变化,安全性正成为所有主要浏览器供应商的主要关注点。

Java 团队在文档Migrating from Java Applets to plugin-free Java technologies 中给出了其完整的集合或原因、备选方案等。 .第 4 页上有以下执行概述:

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.

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.

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.

关于java - 为什么在 JDK 9 中弃用了小程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45535112/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com