Originally posted by Jesper Ottosson: make a class that extends Applet, compile it, put a html-document in the same dir as the just created .classfile. In the html, type: <applet code="MyClass.class" width="100" height="100"></applet>
In IE, if you use the Tools menu to select Internet Options, then click on the Advanced tab, then scroll down to "Java (Sun)," I'm guessing you'll see that IE is trying to use a different JRE than what you have.
I just ran into this when I upgraded Java to 1.5.0, which stopped applets from working in IE 6.0.x. I didn't see any way to update this in IE -- the only options were enable or disable.
But when I tried to open the same page using Netscape 7.0, Netscape was kind enough to recognize the problem and re-direct me to...
I'm not up on how browser plug-ins work, but I'm guessing this (j2re1.4.2_05) is the most recent version for IE. (Does that make sense?)
Anyway, it fixed the problem for me. Although if there's a way to get IE to use jre1.5.0, I would appreciate hearing about it... [ October 29, 2004: Message edited by: marc weber ]
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
posted 15 years ago
Here is how you set JRE in IE. Setting-->ControlPanel-->Java Plug In-->open Browser-->tick the IE checkbox.
posted 15 years ago
Many thanks to all of you who have responded to this thread with tips and pointers.
I have gone to InternetOptions->Advanced and clicked on the check box for "Use Java 2 Sun for <applet" and I have gone to the control panel to run the "Java Plug-in" configuration tool and tried all sorts of variations and versions, and I even re-downloaded and re-installed the JRE from the website and rebooted and I even tried running it under a desktop version of IIS and basically I have spent about a month trying to write a Java Applet that displays "hello world" and all I get is a grey rectangle.
There has just got to be something incredibly stupid I am doing wrong here, but for the life of me I can't figure out what it is. A steak dinner is promised for anyone out there who can point me in the right direction.
My code is about 2 posts back.
p.s. It works in the AppletViewer but not in the Internet Explorer.
Have u tried checking the location of your class file again. The problem could simply be solved by pointing the browser to the right direction . Maybe you could try <applet = "c:yourclassdirectory/../Hello Wolrd.class ... </applet> [ November 19, 2004: Message edited by: Peter Chinaka ]
Crusading Chameleon likes the size of this ad:
Devious Experiments for a Truly Passive Greenhouse!