Java Applet 未在浏览器中运行
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16684913/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java Applet is not running in a browser
提问by Mike Anderson
I am trying to run my applet in a browser, chrome/IE but I get the following message:
我试图在浏览器 chrome/IE 中运行我的小程序,但我收到以下消息:
Your security settings have blocked a local application from running
Due to Oracle, changing security level in java control panel from high to medium will solve the issue, but it does not. I have even tried the low level, and custom level too enabling all applications to run without any prompt. I have also changed the advanced setting to allow unsigned applets to run. It does not work in any way. Any help is appreciated.
由于 Oracle,将 java 控制面板中的安全级别从高更改为中将解决问题,但事实并非如此。我什至尝试过低级别和自定义级别,使所有应用程序都可以在没有任何提示的情况下运行。我还更改了高级设置以允许运行未签名的小程序。它不以任何方式工作。任何帮助表示赞赏。
回答by Aniket Thakur
Do the following
请执行下列操作
- Go to IE
- Tools -> Internet Options
- Go to the Advanced Tab
- Under Java(Sun) Select the check box saying 'Use JRE ... for applet' (requires restart)
- Select Apply/Ok. Restart IE and try loading the applet again.
- 进入浏览器
- 工具 -> Internet 选项
- 转到高级选项卡
- 在 Java(Sun) 下选中“Use JRE ... for applet”复选框(需要重新启动)
- 选择应用/确定。重新启动 IE 并尝试再次加载小程序。
回答by Man Coding
You can either make sure that the applet is signed by a valid cert, and it is not a self-signed cert. Or if you just want to bypass the warning, you can add the domain address to Exception Site List.
您可以确保小程序由有效证书签名,并且它不是自签名证书。或者,如果您只想绕过警告,您可以将域地址添加到例外站点列表。
Java Control Panel -> Security tab -> Exception Site List
Java 控制面板 -> 安全选项卡 -> 例外站点列表
and also you may also try to add the website to the Trusted Zone in your IE if you are sure that the website is safe. In Trusted Zone, there are fewer restrictions to block you from running applet and running the out-of-date ActiveX.
如果您确定该网站是安全的,您也可以尝试将该网站添加到您的 IE 中的受信任区域。在 Trusted Zone 中,阻止您运行小程序和运行过时 ActiveX 的限制较少。