java ie9,在IE9上安装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 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

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):

if(navigator.javaEnabled()){

document.write(''Java is enabled'');

}

else {

document.write(''Java is not enabled'');

}

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!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值