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

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

问题描述

谷歌最近宣布了他们的意图的从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.

因此​​,我期待为Java支持Chrome的停药一种解决方法,而无需重写我的所有客户端的web应用程序,从另一种语言的地面行动。

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.

有也是谷歌Web工具包,这是不是小程序,但让你编写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来保持。铬确实提供了他们的 NPAPI德$ P一些替代品$ pcation页面,但他们不是pretty。选项​​包括HTML5 / WebGL的,WebRTC技术,NaCl或Chrome浏览器扩展。该 Chrome浏览器实验网站是值得浏览,如果迁移掉的Java成为你最佳的选择。

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浏览器。这是pretty重手,并不会为大多数网站所有者的工作,但它是值得一提。

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天全站免登陆