开发者

Deploying Java Applet using eclipse

开发者 https://www.devze.com 2023-03-04 18:24 出处:网络
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 troubl

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

精彩评论

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