简体   繁体   English

Java的浏览器兼容性问题

[英]Browser Compatibility Issues With Java

Java Compatibility Java兼容性

I have been having some trouble with making a custom browser I am using a default class provided by oracle for a custom browser. 我在制作自定义浏览器时遇到了一些麻烦我正在使用oracle为自定义浏览器提供的默认类。 One thing I noticed with the browser is that it cannot run java applets without some sort of variation of java browser plugins. 我注意到浏览器的一件事是,如果没有某种java浏览器插件的变化,它就无法运行java applet。 How exactly do normal browsers receive information from a web server to run a java program externally? 普通浏览器如何从Web服务器接收信息以在外部运行java程序? Is there any way to somehow point the browser toward the jre to run the app like on a normal browser. 有没有办法以某种方式将浏览器指向jre来运行应用程序,就像在普通浏览器上一样。 Just need somewhere to start. 只需要一个地方开始。 FireFox apparently references some sort of MIME format under the npjp2.dll native found in the jre directory. FireFox显然引用了jre目录中的npjp2.dll本机下的某种MIME格式。 Thanks Very Much. 非常感谢。

Oracle Example Oracle示例

You can provide the user with a standard html download page in order for him to download a JNLP file which is the standard file to start a java web start app (applet). 您可以为用户提供标准的html下载页面,以便他下载JNLP文件,该文件是启动Java Web启动应用程序(applet)的标准文件。 If the user's system has java installed, it must recognize the .jnlp file and assosiate it as a java app. 如果用户的系统安装了java,则必须识别.jnlp文件并将其指定为java应用程序。 It's an extra step, for the user to manually download the file instead of running automatically on a web browser, however because of recent security loopholes on java web implementations, most browsers don't trust java anymore, therefore the blocking. 这是一个额外的步骤,用户手动下载文件而不是在Web浏览器上自动运行,但是由于最近Java Web实现的安全漏洞,大多数浏览器不再信任java,因此阻塞。 If you insist on setting up a web start app in a browser you must make sure that all users have appropriate security configurations on ther java installation (very unlikely). 如果您坚持在浏览器中设置Web启动应用程序,则必须确保所有用户在安装java时都具有适当的安全配置(非常不可能)。

EDIT: 编辑:

Here's a very nice tutorial on how to achieve what I just explained. 这是一个关于如何实现我刚才解释的非常好的教程。

TUTORIAL 教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM