Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes applet can't be instantiated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "applet can Watch "applet can New topic
Author

applet can't be instantiated

Rudy Holtkamp
Greenhorn

Joined: Aug 20, 2001
Posts: 1
I've made an applet in Borland JBuilder 3.0 and it works perfectly in the appviewer, but when I make a complete jar-file with all classes that are used and open an html page with the following code:
< HTML>
< HEAD>
< META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
< TITLE>
HTML Test Page
< /TITLE>
< /HEAD>
< BODY>
Honk2.Honk2Applet will appear below in a Java enabled browser.
< APPLET<br /> ARCHIVE = "Game.jar"<br /> CODEBASE = "."<br /> CODE = "Honk2.HonkApplet.class"<br /> NAME = "TestApplet"<br /> WIDTH = 525<br /> HEIGHT = 525<br /> HSPACE = 0<br /> VSPACE = 0<br /> ALIGN = middle<br /> >
< PARAM NAME = NumberOfAIPlayers VALUE = "3">
< PARAM NAME = NumberOfHumanPlayers VALUE = "1">
< PARAM NAME = ShufflePlayOrder VALUE = "false">
< /APPLET>
< /BODY>
< HTML>
The browser says:
load: Honk2.HonkApplet can't be instantiated
I don't know what I'm doing wrong. Can anybody help me.
Rudy
[This message has been edited by Cindy Glass (edited August 20, 2001).]
Rehan Malik
Ranch Hand

Joined: Jul 09, 2001
Posts: 76
You need to download the HTMLConverter to convert your HTML file. It's a headache of having to do so but there's no other option =P
Check Sun's website for the HTML Plug in


Rehan Malik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet can't be instantiated