谷歌浏览器 Java 解决方法 [英] Google Chrome Java Workaround

查看:33
本文介绍了谷歌浏览器 Java 解决方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google 最近宣布他们打算 在不久的将来从 Chrome 中移除客户端 Java 支持.我是一名天生的 Java 开发人员,几乎所有基于 Web 的应用都基于某种形式的 Java 构建.

Google has recently announced their intentions to remove client-side Java support from Chrome in the near future. I, a Java developer by nature, have built nearly all of my web-based applications on top of some form of Java.

因此,我正在寻找解决 Chrome 停止 Java 支持的方法,而无需使用另一种语言从头开始重写我的所有客户端网络应用程序.

As such, I am looking for a workaround for Chrome's discontinuation of Java support, without having to rewrite all of my client-side web apps from the ground-up in another language.

此外,我正在寻找一种不需要 Chrome 内置 NPAPI 解决方法的解决方法,因为我需要基本用户能够继续按原样使用小程序.

Furthermore, I'm searching for a workaround which does not require Chrome's built-in NPAPI workarounds, as I need basic users to be able to continue to use the applets as they are.

推荐答案

我所知道的最佳选择是 Java Web Start(教程),它没有在浏览器中运行,但允许用户轻松运行您从网站提供的 Java 应用程序.Oracle 提供了一些关于如何迁移到 JWS 的文档,但要点是简单地将 标记替换为指向 .jnlp 文件的链接,该文件的信息与 相同> 标签了.您可能还需要调整 Chrome 的应用默认设置.

The best option I'm aware of is Java Web Start (tutorial), which doesn't run in browser but does allow users to easily run a Java application you serve from a website. Oracle provides some documentation on how to migrate to JWS, but the gist is to simply replace the <applet> tags with a link to a .jnlp file with the same information the <applet> tag had. You may have to tweak Chrome's application defaults as well.

还有 Google Web Toolkit,它不适用于小程序,但可以让您编写 Java编译成 JavaScript.

There is also the Google Web Toolkit, which isn't for applets, but does let you write Java that compiles into JavaScript.

如果您的小程序更多地集成到浏览器中,很遗憾您可能无法继续使用 Java.Chromium 确实在他们的 NPAPI 弃用页面上提供了一些替代方案,但它们并不漂亮.选项包括 HTML5/WebGL、WebRTC、NaCL 或 Chrome 扩展.如果从 Java 迁移成为您的最佳选择,Chrome Experiments 网站值得浏览.

If your applets are more integrated into the browser, unfortunately you may not be able to keep using Java. Chromium does offer some alternatives on their NPAPI deprecation page, but they're not pretty. Options include HTML5/WebGL, WebRTC, NaCL, or Chrome Extensions. The Chrome Experiments site is worth browsing if migrating off of Java becomes your best option.

然而,Oracle 的官方建议是避免使用 Chrome.这是非常严厉的,对大多数网站所有者不起作用,但值得一提.

Oracle's official recommendation, however, is to avoid Chrome. That's pretty heavy-handed, and won't work for most website owners, but it's worth mentioning.

这篇关于谷歌浏览器 Java 解决方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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