开发者

Deploying Java Applet using eclipse

I'm try to get a java website and java applet up and running together. I've setup an eclipse tomcat project and created a java applet, which runs fine in the AppletViewer. However i'm having trouble launching the applet in the browser.

AppletMain.class is missing for the WebContent folder what is the best way 开发者_JAVA百科to get it to deploy correctly?

Eclipse project:

Deploying Java Applet using eclipse

Applet source file:

Deploying Java Applet using eclipse

index.jsp

Deploying Java Applet using eclipse


Applet tag has been depreciated with Object tag according to W3C specifications.

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

where

  • the classid attribute identifies which version of Java Plug-in to use. This instructs Internet Explorer to use the latest installed version of Java Plug-in.

    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜