aspose file tools
The moose likes Beginning Java and the fly likes applet can't be instantiated Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: applet can't be instantiated
 
Similar Threads
JSF, Facelets losing context after reload
Can't accept parameters from an applet
Changing the param of an applet with XSL or JS ...
Internet Explorer 5.0 and Applets
why my jstl.jar and standard.jar is not working