在IE9上安装Java警告 [英] Install java on IE9 warning

查看:195
本文介绍了在IE9上安装Java警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经卸载了所有Java实例,现在我在应用程序中使用了Java Applet..

当我尝试从IE9访问包含该applet的网页时,它要求我安装Java.
当我尝试从IE9安装Java时,我发现以下警告,然后无法安装Java.
警告:错误

请帮帮我..

感谢

I have uninstalled all the instances of java and now i am using an java applet in my application..

When i tried to access the webpage containing that applet from IE9 it ask me to install Java..

When i tried to install java from IE9 i found the following warning and then java couldnt install..

Warning: Error

Please help me out..

Thanks

推荐答案

Java是一个独立的软件,为Java应用程序提供了运行时环境.要安装Java,请访问[ Java下载页面],然后下载最合适的JRE您的操作系统.选择 Windows离线版本版本,然后按照说明进行安装.如果安装后遇到IE相同的问题,请知道是问题所在的IE,而不是您的计算机

问候,
Pat
Java is an independent Software that provides a runtime environment for Java applications. To install Java, visit [Java Downloads Page] and download the most appropriate JRE for your Operating System. Select the windows offline version and follow instructions on how to install. If after installing you experience the same problems with IE, then know that it''s IE that has the problem and not your computer

Regards,
Pat


您需要在包含小程序的HTML页面中添加一小段代码.
因为当未安装Java时,该applet不会运行-因此您需要以一种更加原生"的方式进行操作.

因此,将以下内容添加到您的HTML代码中(在主体内部):

You need to add a small code to your HTML-Page containing the applet.
Because the applet will not run when Java is not installed - so you need to do it in a more "native" way.

So add the following to your HTML code (inside the body):

<script type="text/javascript">
if(navigator.javaEnabled()){
document.write(''Java is enabled''); <!-- add the applet in here -->
}
else {
document.write(''Java is not enabled''); <!-- tell the user that it will not work -->
}
</script>



您也可以不使用applet首先进行测试和开发.
document.write(value)中的值可以扩展,并且可以从一个简单的String(从图像引用到带有参数的applet)中携带很多内容.

玩得开心!



You can also test and develop it first without the applet.
That value in document.write(value) can be extended and carry pretty much from a simple String, an image reference up to a applet with params...

Have fun!


这篇关于在IE9上安装Java警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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