Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applet can't be instantiated 1

Status
Not open for further replies.

professorkill

Programmer
Jul 8, 2001
2
US
When ever I build a really simple applet using JBuilder, I use IE5 to open the web page that loads the applet and I get this error...

Applet can't be instantiated


I get an empty grey applet window. These applets are the 'Hello World' variety so it's not the code. What is happening?

Thanks in advance for your advice :)

Mark Deibert :)
 
It depends on the version of Java that your code is being compiled by. For example anything using Java 2 swings classes will not run in most browsers (can't remember which ones just at the mo) unless you convert the HTML using the sun provided HTML converters. (see the sun java website for the ones available for free download). I believe that there are at least converters for Java versions 1.2 and 1.3.

This is the only thing I can think it could be according to your description.
 
I bet your right. I'll look into the browser/Java 2 compatability thing today.

Thanks for your help!

Mark :)
 
Yes, it was absolutely right. And, in spite of it now being almost exactly two years later, it's STILL absolutely right!! Microsoft Internet Explorer version 6 STILL DOESN'T SUPPORT SWING.

Is there any other software company that has caused more furniture to be hurled through more windows??
 
Hi,

Ihave the same problem but I run it in NestScape 7.0 and still only shows the gray box empty.
 
You can download an HTML converter, or you can look at the related documentation page to see how to change your APPLET tag into an OBJECT tag or an EMBED tag (depending on your platform) that uses the Sun Java plug-in.

The HTML converter is here:

Alternatively, you can code your own tags (this is what I do). The information on converting an APPLET tag is here:

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top