Results 1 to 4 of 4
  1. #1
    ernstlenzer is offline Member
    Join Date
    Jun 2012
    Posts
    3
    Rep Power
    0

    Default Applet not working in Google Chrome

    Some time ago I made a small game as Java Applet, which works fine in Firefox and IE on Windows and Linux. Unfortunately it doesn't seem to work with Google Chrome, it just shows a white box and I can't figure out whats wrong. Maybe someone can point me in the right direction. This is the website: Browser Shooter

    And here is the relevant code:
    Java Code:
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="400" height="400">
     <param name="codebase" value="game/" />
     <param name="code" value="browsershooter" />
     <param name="archive" value="browsershooter.jar" />
     <param name="levelcode" value="begin" />
     <!--[if !IE]> -->
      <object archive="browsershooter.jar" codebase="game/" classid="java:browsershooter.class" width="400" height="400">
       <param name="levelcode" value="begin" />
       <param name="archive" value="browsershooter.jar" />
      </object>
     <!-- <![endif]-->
    </object>

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,574
    Rep Power
    23

    Default Re: Applet not working in Google Chrome

    Are there any error messages in the java console?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    ernstlenzer is offline Member
    Join Date
    Jun 2012
    Posts
    3
    Rep Power
    0

    Default Re: Applet not working in Google Chrome

    No, the console doesn't even show up. I think Chrome doesn't recognize that it's supposed to load the applet in the first place. But it's not a problem with my computer, other applets are working.

    EDIT: actually it's definitely not running, because Chrome asks for all other applets whether you really want to execute it and that message doesn't show up on my site. So something must be wrong with the embedding.
    Last edited by ernstlenzer; 06-11-2012 at 11:17 PM.

  4. #4
    ernstlenzer is offline Member
    Join Date
    Jun 2012
    Posts
    3
    Rep Power
    0

    Default Re: Applet not working in Google Chrome

    Now it's working. Apparently Chrome just doesn't understand the object tag for Java Applets. Works fine with the embed tag in all browsers.

Similar Threads

  1. Replies: 0
    Last Post: 02-02-2012, 07:24 AM
  2. Java Applet is not working in Google Chrome
    By AsoInfo in forum Java Applets
    Replies: 2
    Last Post: 01-28-2012, 05:56 AM
  3. Replies: 2
    Last Post: 09-01-2010, 04:57 PM
  4. Radio Button options working on FF and Chrome but not on IE8
    By kris_java in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 09-01-2010, 07:57 AM
  5. [SOLVED] Using Google Chrome for development?
    By piyu.sha in forum New To Java
    Replies: 2
    Last Post: 10-06-2008, 09:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •