SecurityException:升级到 JRE 1.7.0_13 后小程序类名称错误 [英] SecurityException: Bad applet class name after upgrade to JRE 1.7.0_13

查看:25
本文介绍了SecurityException:升级到 JRE 1.7.0_13 后小程序类名称错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到 JRE 1.7.0_13 后,我的 Applet 不再运行.我收到以下安全异常:

After upgrading to JRE 1.7.0_13 my Applet is not running anymore. I get the following Security Exception:

basic: Fortschritts-Listener hinzugefügt: sun.plugin.util.ProgressMonitorAdapter@25a091
basic: Ausnahme: Bad applet class name.
ExitException[ 3]java.lang.SecurityException: Bad applet class name
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
basic: Fortschritts-Listener entfernt: sun.plugin.util.ProgressMonitorAdapter@25a091

棘手的是小程序不是从网络服务器加载的,而是安装在 JRE lib/ext 目录中.

The tricky thing is the applet is not loaded from the webserver but installed in JRE lib/ext directory.

我认为 _013 引入了Bad applet class name",因为我没有找到有关它的任何信息.该消息没有给我任何关于更改内容的提示.

I think 'Bad applet class name' has been introduced with _013 because I don't find any information about it. The message does not give me any hint about what to change.

下面是小程序在网页中的嵌入.

Below is the embedding of the applet in the Web page.

<embed table="some param" anzahl="506" 
    type="application/x-java-applet" 
    code="ArtefakteApplet.class" 
    name="artefakteApplet" 
    id="artefakteApplet" 
    height="550" width="1020">

有人知道该怎么做吗?

推荐答案

..安装在 JRE lib/ext 目录中.

..installed in JRE lib/ext directory.

不要那样做.在 Oracle 收购它们之前,Sun 多年来一直警告我们不要这样做.

Don't do that. Sun warned us not to for years before Oracle bought them.

有人知道该怎么做吗?

首先要做的是将小程序从那个位置移动到一个公共的、可访问的目录,然后再试一次.另外,不要使用 embed 元素.deployJava.js 是嵌入小程序的可靠方式.

The first thing to do is move the applet from that location to a public, accessible directory and try it again. Also, don't use the embed element. deployJava.js is offered as the reliable way to embed an applet.

这篇关于SecurityException:升级到 JRE 1.7.0_13 后小程序类名称错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆