|
-
Mar 19th, 2006, 09:36 PM
#1
Thread Starter
Addicted Member
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>
-
Mar 20th, 2006, 12:46 AM
#2
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?
Last edited by ComputerJy; Mar 20th, 2006 at 01:02 AM.
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Mar 20th, 2006, 01:49 AM
#3
Thread Starter
Addicted Member
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.
-
Mar 20th, 2006, 06:37 AM
#4
Frenzied Member
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>
-
Mar 20th, 2006, 08:27 PM
#5
Thread Starter
Addicted Member
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.
-
Mar 20th, 2006, 08:42 PM
#6
Frenzied Member
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.
-
Mar 21st, 2006, 01:42 AM
#7
Re: Cannot use applet in Internet Explorer
Use Sun AppletViewer
it must must work correctly, otherwise your sdk has a problem and needs reinstalling
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Mar 21st, 2006, 02:01 AM
#8
Thread Starter
Addicted Member
Re: Cannot use applet in Internet Explorer
I used appletviewer. It worked properly but I does not work in Internet Explorer.
-
Mar 21st, 2006, 06:17 AM
#9
Frenzied Member
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.
-
Mar 21st, 2006, 03:59 PM
#10
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
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Mar 21st, 2006, 09:30 PM
#11
Thread Starter
Addicted Member
Re: Cannot use applet in Internet Explorer
Thank all. Now I reinstall J2SDK and it runs properly.
-
Mar 22nd, 2006, 01:09 AM
#12
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
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|