1

可能重复:
为嵌入在 HTML 中的 Applet 设置策略

我创建了一个简单的 Java 小程序来获取网站的屏幕截图。我在罐子上签名了,看来它已经过验证了。

         410 Fri Sep 14 13:20:34 EEST 2012 META-INF/MANIFEST.MF
         376 Fri Sep 14 13:20:36 EEST 2012 META-INF/SIGNER.SF
         830 Fri Sep 14 13:20:36 EEST 2012 META-INF/SIGNER.RSA
           0 Fri Sep 14 13:20:36 EEST 2012 META-INF/
           0 Fri Sep 14 13:20:36 EEST 2012 screencaptureapplet/
sm       615 Fri Sep 14 13:20:36 EEST 2012 screencaptureapplet/CaptureFrame$1.class
sm     17311 Fri Sep 14 13:20:36 EEST 2012 screencaptureapplet/CaptureFrame.class

  s = signature was verified
  m = entry is listed in manifest
  k = at least one certificate was found in keystore
  i = at least one certificate was found in identity scope

jar verified.

但是它在我的网站上不起作用。它说:

access denied (java.awt.AWTPermission createRobot)

尴尬的是它在我的功能的第一行失败了

Robot robot = new Robot();

有没有人知道解决这个问题的方法?

4

0 回答 0