wood burning stoves
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

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "applet can Watch "applet can New topic

applet can't be instantiated

Rudy Holtkamp

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:
< META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
HTML Test Page
< /HEAD>
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">
< /BODY>
The browser says:
load: Honk2.HonkApplet can't be instantiated
I don't know what I'm doing wrong. Can anybody help me.
[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
Have you checked out Aspose?
subject: applet can't be instantiated
It's not a secret anymore!