日期:2014-05-17  浏览次数:21054 次

OBJECT标签,jsp中添加applet,提示类找不到
jsp:
HTML code
<table>
      <tr>
      <td>
        <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" id="allApplet" name="allApplet" codeBase="http://192.168.18.45/iFile/jre/jre6.0.exe" width="0" height="0" border=0 onerror="return false;">
            <param name=ARCHIVE value="Applet.jar,xfire-all-1.2.4.jar,commons-logging.jar,stax-api-1.0.1.jar,wsdl4j-1.6.1.jar,activation.jar,jdom.jar,xfire-jsr181-api-1.0-M1.jar,jaxb-api-2.0.1.jar,commons-httpclient-3.0.jar,commons-codec-1.3.jar,wstx-asl-3.2.0.jar,sdts.jar,truezip-6.jar,metadata-extractor-2.3.1.jar,filetype.jar,jaxb-impl-2.0.1.jar,universal.jar"/>
            <param name=CODE value="com.shareit.sas.web.applet.AllApplet.class"/>
            <param name="type" value="application/x-java-applet;version=1.6"/>
            <param name="language" value="zh_CN"/>
            <PARAM name="MediaPlayerFormat" value="mpg,mpeg,asx,wax,m3u,mp3,wpl,avi,wmv,asf,wm,wma,mid,emi,midi,mka,mkv" />
            <PARAM name="RealPlayerFormat" value="aif,swf,rm,rmvb,ra,rax,ram,rmm,smi,smil,mov,qt,wav,au,vob" />
            <PARAM name="ImageFormat" value="bmp,gif,ico,jpg,jpeg,png,tif" />
            <PARAM name="Document" value="doc,docx,ppt,pptx,xls,xlsx,vsd,mdb,pdf,txt,html,htm,xml" />
            <PARAM name="Password" value="" />
        </OBJECT>
        
      </td>
    </tr>
  </table>


java控制台提示的错误代码:
Java Plug-in 1.6.0_01
使用 JRE 版本 1.6.0_01 Java HotSpot(TM) Client VM
用户主目录 = C:\Users\xuhf
----------------------------------------------------
c: 清除控制台窗口
f: 终结在结束队列上的对象
g: 垃圾收集
h: 显示此帮助消息
l: 转储类载入程序列表
m: 打印内存使用
o: 触发日志记录
p: 重新载入代理配置
q: 隐藏控制台
r: 重新载入策略配置
s: 转储系统和部署属性
t: 转储线程列表
v: 转储线程堆栈
x: 清除类载入程序高速缓存
0-5: 设置跟踪级别为<n>
----------------------------------------------------
载入:找不到类 com.shareit.sas.web.applet.AllApplet.class。
java.lang.ClassNotFoundException: com.shareit.sas.web.applet.AllApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more

在线等 请高手指教

------解决方案--------------------
JDK配置是否正确;
HTML中于JAVA源文件编译的类文件名是否一致;
是否调用正确.