java 绕过警报“您要运行此应用程序吗”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13082178/
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
Bypass alert "Do you want to run this application"
提问by jaychapani
Is there any way to convert self signed certificate to trustedone?
有没有办法将自签名证书转换为可信证书?
So can I by pass below alert?
那么我可以绕过警报吗?
I have one applet which trying to run some application on user's machine.
我有一个小程序试图在用户的机器上运行一些应用程序。
I am using self signed jar.
我正在使用自签名 jar。
回答by FThompson
No, you cannot stop that warning from appearing. It exists exactly for the purpose of preventing developers from doing what you're trying to do, as running executables without permission can be dangerous for the end user's system and personal data.
不,您无法阻止该警告的出现。它的存在正是为了防止开发人员做您想做的事情,因为未经许可运行可执行文件可能对最终用户的系统和个人数据造成危险。
回答by Robert Duncan
You have to choose between uninstalling Java or using an older version. Otherwise you have to OK every single JSP page you ever use. Don't ever upgrade your Java because it will reset all of these warnings and you'll have to go through the process all over again. Our internal LAN uses a JSP application as a frontend to our Oracle database, and I have to check this box about 2 - 300 times every time Java is upgraded. I finally installed an older version. If Oracle was trying to make people even more averse to upgrading Java, good job.
您必须在卸载 Java 或使用旧版本之间做出选择。否则,您必须确定您曾经使用过的每个 JSP 页面。永远不要升级您的 Java,因为它会重置所有这些警告,您将不得不重新完成整个过程。我们的内部 LAN 使用 JSP 应用程序作为我们 Oracle 数据库的前端,每次升级 Java 时我都必须选中此框大约 2 到 300 次。我终于安装了旧版本。如果甲骨文试图让人们更加反对升级 Java,那么干得好。
回答by user4292586
Another choice is to open a page, accept and run the application, then leave the page open. Add a new tab open the page again and you wont get the warnings.
另一种选择是打开一个页面,接受并运行该应用程序,然后让该页面保持打开状态。添加一个新选项卡再次打开页面,您将不会收到警告。