• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet code attribute unable to find the .class file

 
haripriya vedula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to applets. I created a HelloWorldApplet by selecting a java project in eclipse and output(compiled classes are under prj/bin/ folder.

When i am calling applet class from html its unable to find the HelloWorldApplet .class file.

My code of snippet is as follows:

<APPLET CODE="HelloWorldApplet.class" WIDTH=500 HEIGHT=50>
</APPLET>

Can anyone help me where i am wrong.

Thanks,
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The .class file must be in the same directory as the .html file (unless the class is part of a package, in which case the package root is the directory where the .html file is in).
 
haripriya vedula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic