aspose file tools*
The moose likes Applets and the fly likes Making an Html file, I'm using Eclipse(Urgent) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Making an Html file, I Watch "Making an Html file, I New topic
Author

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

Glenn Castro
Ranch Hand

Joined: Aug 24, 2003
Posts: 78
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???


Glenn Castro<br />Sun Certified Web Component Developer
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
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


My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
Glenn Castro
Ranch Hand

Joined: Aug 24, 2003
Posts: 78
Thanks Brian. I have aploaded the applets and it worked fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making an Html file, I'm using Eclipse(Urgent)
 
Similar Threads
Applet not inited
applet problem w/ posted html
Applet in html page problem
applet loading problem
opening new browser window from applet