gpt4 book ai didi

java - 在 Chrome 中运行 Java

转载 作者:行者123 更新时间:2023-12-02 04:21:57 25 4
gpt4 key购买 nike

我有一个个人网站,其中有项目列表。这些项目之一是 Java Swing 应用程序。

我认为将该项目嵌入到网站上会很酷,这样访问者就可以看到它的实时运行。然而,Chrome 现已完全取消了对运行 Java 的传统方式的支持。

类似 Live Connect 的内容可以接受,但似乎已经过时了。

基本上,我想知道是否有任何方法(当前或计划)在 Chrome 中运行 Java,或者我最好的选择是否是提供 jar 文件的链接以供下载。或者我应该继续将其嵌入 traditional way让 Chrome 用户半途而废?

最佳答案

我认为您混淆了 java applet 和 java web start。 Chrome 已删除对 Java 小程序的支持。对于 swing 应用程序,您已以“传统方式”链接使用 Java Web Start,它在浏览器外部运行 Java 应用程序。这应该可以在 Chrome 中继续正常工作:

Chrome no longer supports NPAPI (technology required for Java applets)

The Java plug-in for web browsers relies on the cross platform plugin architecture NPAPI, which has been supported by all major web browsers for over a decade. Google's Chrome version 45 (scheduled for release in September 2015) drops support for NPAPI, impacting plugins for Silverlight, Java, Facebook Video and other similar NPAPI based plugins.

Java applications are offered though web browsers as either a web start application (which do not interact with the browser once they are launched) or as a Java applet (which might interact with the browser). This change does not affect Web Start applications, it only impacts applets.

( source )

关于java - 在 Chrome 中运行 Java,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32683017/

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