Cannot use applet in Internet Explorer
I have installed j2sdk1.4.2. I have a applet class and view this in IE. IE didn't recognize the <applet> tag.
VB Code:
<applet code="applet1.class" width="100" height="200">
</applet>
It display the same thing in IE:
VB Code:
<applet code="applet1.class" width="100" height="200">
</applet>
Re: Cannot use applet in Internet Explorer
Make sure the html file and the class file must be in the same dir
Are you using FronPage?
Re: Cannot use applet in Internet Explorer
Yes. I put class name and html file in the same folder. I used Notepad. I think that Internet Explorer dose not recognize <applet> tag.
Re: Cannot use applet in Internet Explorer
It wouldn't matter if everythings in the same directory. At the very least it would show an empty box with an x in the corner. Internet explorer should read applet tags just fine. I use it all the time and mine show up. Make sure you are saving the webpage with a .html extension. Also, it would help if you posted the rest of the code.
You could have something like this:
Code:
<html>
<head><title></title></head>
<body>
//applet code
</body>
</html>
Re: Cannot use applet in Internet Explorer
I have tried to open applet sample(html with applet) that come with j2sdk. It also does not recognize the applet tag.
Re: Cannot use applet in Internet Explorer
Go to internet options --> advanced --> make sure the box for sun JRE is selected. I know it's not since you say that it is not recognized <applet>. If it is selected, then unselect it. If it is checked, then try unchecking it.
Re: Cannot use applet in Internet Explorer
Use Sun AppletViewer
it must must work correctly, otherwise your sdk has a problem and needs reinstalling
Re: Cannot use applet in Internet Explorer
I used appletviewer. It worked properly but I does not work in Internet Explorer.
Re: Cannot use applet in Internet Explorer
Did you do what I told you to do? You need a JRE to recognize the applet tag and that box needs to be checked.
Re: Cannot use applet in Internet Explorer
Open Java from the control panel
go to the Advanced tab
Under Applet support make sure IE is checked
Re: Cannot use applet in Internet Explorer
Thank all. Now I reinstall J2SDK and it runs properly.
Re: Cannot use applet in Internet Explorer
If you are using IE 7, I guess the problem is the Applet tag has been removed and replaced with <object> with some specifications
Try viewing a webpage that contains an Applet to see if you can get it to work