Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • 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: 42970
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 !
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!