无法从ASP.net应用程序运行已签名的小程序。获取ClassNotFoundException

时间:2015-03-05 17:41:37

标签: java html applet code-signing classnotfoundexception

目前我正在尝试更新应用程序的证书

我已经使用代码签名证书签署了我的applet程序(Applet.jar)。之后,我尝试运行应用程序并获取异常java.lang.ClassNotFoundException:imaging.ImageApplet。

HTML代码

<applet id="ctl00_ContentPlaceHolder1_imageApplet" 
  name="imageApplet" 
  code="imaging.ImageApplet" 
  width="1000" 
  height="152" 
  mayscript="true"    
  class="applateBorder" 
  archive="applet.jar" 
  style="overflow: auto;">
</applet>

清单代码

Application-name : Image app 
Application-Library-Allowable-Codebase: *
Caller-Allowable-Codebase: *
Codebase:*
Permissions: all-permissions
Trusted-Library: true

html和jar文件都在同一个文件夹中。

部分Exception将如下调试模式

network: Cache entry not found [url: http://hardscapeimagingsoftware.com/onlineimaging/imaging/ImageApplet.class,   version: null]
network: Connecting http://hardscapeimagingsoftware.com/onlineimaging/imaging/ImageApplet.class with proxy=DIRECT
network: Connecting http://hardscapeimagingsoftware.com/onlineimaging/imaging/ImageApplet.class with cookie "countrytabs=1" 
java.lang.ClassNotFoundException: imaging.ImageApplet
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

我们还需要每年重新签名代码吗?

1 个答案:

答案 0 :(得分:0)

我找到了问题classNotFoundException的根本原因。这是由于jar期间文件夹的错误排序。

除了每个过程都是正确的。