0

我有一个不再与我的导航器一起运行的小程序,尽管当我将它作为独立应用程序启动时它运行得非常好。

以前我有 JRE 6 并且运行良好,现在我使用的是最新版本。我已经阅读了有关较新 JRE 版本 7 + 的新安全改进。

这是我的 HTML 代码

  <html><body>
  <p>
  <applet code="UI.class" archive="UI.jar"
  width="740" height="400"></applet>
  </p>
  </body></html>

我不断收到阻塞异常。如果你告诉我怎么做,我愿意上传我的 jar 文件。

4

1 回答 1

0

It seems this question has already been asked.

So it seems that uninstalling JDK6 and 7 and then reinstalling JDK7 could solve your problem.

If it doesn't work you can still sign your jar with a command like this jarsigner jar-file alias. (It is possible to do it from Maven or Ant)

You can also modify the policy file of you JDK. Here is a page explaining how to do this.

If you like to do it manually, here is what the content should look like:

grant  {
    permission java.security.AllPermission; // All permissions are granted 
};
于 2013-07-11T15:28:01.917 回答