Results 1 to 12 of 12

Thread: Cannot use applet in Internet Explorer

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Lightbulb 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:
    1. <applet code="applet1.class" width="100" height="200">
    2. </applet>

    It display the same thing in IE:
    VB Code:
    1. <applet code="applet1.class" width="100" height="200">
    2. </applet>

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question 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.

  4. #4
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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>

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question 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.

  6. #6
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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.

  7. #7
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Re: Cannot use applet in Internet Explorer

    I used appletviewer. It worked properly but I does not work in Internet Explorer.

  9. #9
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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.

  10. #10
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question Re: Cannot use applet in Internet Explorer

    Thank all. Now I reinstall J2SDK and it runs properly.

  12. #12
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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
  •  



Click Here to Expand Forum to Full Width