Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making an Html file, I'm using Eclipse(Urgent)

 
Glenn Castro
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a problem creating an html file for the applet.
First, my java files are inside a PACKAGE(named client). I created an html file as shown below:
<html>
<body>
<applet code="Client.class" codebase="." width=300 height=500>
</applet>
</body>
</html>
That is saved at the Project's Folder(the place where the java packages are stored).
The problem is the class cannot be found. What should I do???
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the package is Client, then you wouldn't use
"<applet code="Client.class" codebase="." width=300 height=500>"
you would use
<applet code="Client.YourClassName.class" codebase="." width=300 height=500>
brian
 
Glenn Castro
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Brian. I have aploaded the applets and it worked fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic