简体   繁体   English

Java Applet安全性错误

[英]Java applet security error

Hi I'm wanting to test some applets and I'm just running it in my local browser from the file on my computer. 嗨,我想测试一些小程序,我只是从计算机上的文件在本地浏览器中运行它。 But I am getting a security error 但是我收到一个安全错误

Your security settings have blocked an untrusted application from running

I am new to applets so maybe I am missing something out? 我是applets的新手,所以也许我错过了一些东西? I am just using basic paint method and drawing. 我只是使用基本的绘画方法和绘图。

how can I test this file on my own computer? 如何在自己的计算机上测试此文件?

Sine April 2013, even untrusted applets need to be signed with a valid certificate for "best user experience". 从2013年4月开始,即使是不受信任的applet也需要使用有效的证书进行签名,以实现“最佳用户体验”。 See Java Applet & Web Start - Code Signing on Oracle's site. 请参阅Oracle网站上的Java Applet和Web入门-代码签名 At the time of writing the current release notes for 7u51 describe recent changes. 在撰写本文时,7u51的当前发行说明描述了最近的更改。 The Java Platform Group blog is worth reading. Java Platform Group博客值得一读。

If you're following an applet tutorial, updated online material is probably better than a book. 如果您正在关注applet教程,那么在线更新的资料可能比一本书要好。

You could do one of the following four things: 您可以执行以下四件事之一:

  1. Sign your applet with an official certificate 使用正式证书在小程序上签名
  2. Lower your security bar in the java system settings to medium 将Java系统设置中的安全栏降低到中
  3. Sign your applet with an self-signed applet and put your certificate in the java trust store 使用自签名小程序签名小程序 ,然后将证书放入Java信任库中
  4. Put your URL to the exception site list of java 将您的URL放入Java的例外站点列表

And please note that in some browsers you also have to enable the java plugin... 并且请注意,在某些浏览器中,您还必须启用Java插件...

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

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