سؤال

لدي TViewerApplet.class في حزمة com.abc.applet. للتوقيع على ملف الجرة اتبعت الخطوات التالية:

1) إنشاء ملف jar لمجلد com باستخدام cmd jar cf Viewer.jar com

2) ملف الجرة الموقع باستخدام cmd

 jarsigner -keystore "C:\Documents and Sett
ings\compstore" -storepass abcdef -keypass abcdef
-signedjar "C:\Documents and Settings\SignedViewer
.jar" "C:\Documents and Settings\Viewer.jar" signFiles

تمت إضافة العلامة أدناه في ملف jsp

<applet name="viewerApplet" id="TViewerApplet" width="100%" height="500" code="com.abc.applet" align="baseline" codebase="." mayscript="mayscript" archive="SignedViewer.jar,cmbview81.jar"> </applet>

لكن المشكلة هي أنني أفهم

Caused by: java.io.IOException: open HTTP connection failed:http://10.160.120.221:8086/ICMViewer/com/abc/applet.class
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 9 more
Exception: java.lang.ClassNotFoundException: com.abc.applet
هل كانت مفيدة؟

المحلول

يبدو أن المشكلة لا تكمن في أنك قمت بالتوقيع على التطبيق الصغير الخاص بك، بل في التكوين الخاطئ لعلامة التطبيق الصغير في html.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top