2011-05-07 94 views
0

我試着獲得一個java網站和java applet並一起運行。我已經建立了一個eclipse tomcat項目並創建了一個java applet,它在AppletViewer中運行良好。不過,我在瀏覽器中啓動小程序時遇到問題。使用eclipse部署Java Applet

AppletMain.class對於WebContent文件夾缺失什麼是使它正確部署的最佳方式?

Eclipse項目:

Eclipse Project

Applet源文件:

enter image description here

的index.jsp

enter image description here

回答

0

Applet標籤已根據W3C specificationsObject標籤折舊。

<OBJECT 
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 
    width="200" height="200"> 
    <PARAM name="code" value="Applet1.class"> 
</OBJECT> 

其中

  • classid屬性標識哪個版本的Java插件的使用。這指示Internet Explorer使用最新安裝的Java Plug-in版本。

    的classid = 「clsid中:8AD9C840-044E-11D1-B3E9-00805F499D93」