Java applet freezes while loading on Firefox on Mac OS 10.9

I am using Mac OS 10.9.4 with Firefox 32 and Java 7 update 67. The java applet freezes while loading for the first time. On double clicking, it loads successfully. Once the applet gets loaded then it loads successfully until the web-page is refreshed or cache is cleared. I don't see any error message or any errors in the java console logs. Any help on this issue, apart from the double click work around? Any permanent solution?

This delay can also happen when Java has been unloaded from memory and needs to be reloaded from disk and (re)initialized.
You may be tight on available (free) memory if this happens all the time.

Similar Messages

  • Applet freezes while Jar is loading

    Hi everyone,
    I have a fundamental question concerning the loading mechanism of an applets resources.
    The problem is as follows:
    I have two jars, the first containing all *.class files, the second (size: 10MB) containing only graphics and sounds.
    I start the applet with this code:
    <APPLET ARCHIVE="init.jar,resources.jar" HEIGHT="100" [...]>Of course the point is to have the small init.jar loaded fast an display a loading animation while the big file is beeing loaded in the background. Up to here everything works as expected. When i start the applet, the init.jar is loaded and displays a loading animation as long as i try to get a resource from the resource.jar.
    When I do that, my applet freezes while the big resource.jar file is beeing downloaded.
    This is how i access the resource in the resource.jar
    public void run() {
         while(/*some condition*/) {
              // this is the line which blocks until whole jar is downloaded
              java.io.InputStream input = this.getClass().getClassLoader().getResourceAsStream(/*resource String*/);
              // use input to load resource
    }The freeze happens only upon the first time the while-loop runs, after that the resource.jar is chached and access is almost instant.
    Now the concrete problem is, that the applet freezed in all its threads while the jar is beeing downloaded. I NEED to display an idle animation while this is done.
    Has anyone any suggestion how i can avoid the complete freeze?
    I have already concidered to load the resources without specifing the jar in the HTML-ARCHIVE-Tag, this works becouse of the codebase i can load the ressources from, but the problem is, that these resources have a large overhead from the server to the client until i can use them in the program.
    Also it is no option to load them all on startup in another backgound thread (which would slove the freeze problem, i tried it), becouse i have to dynamically load and unload these resources to avoid OutOfMemory-Errors. Reloading them brings the overhead-Problem up again.
    Only when i specify the 2nd jar in the ARCHIEVE-Tag i have direct access to the browsers chache without wasting memory when holding references to all resources.
    After all every loading and stuff works, there are no errors in the programm only this strange behaviour. I Also tried it with different VMs, on different OS, and different Browser, all the same.
    I would be glad if someone could give me a hint on this, i've been searching for days now, even tried to analyse the Classoader sources but ended up in sun's native calls...
    Thank you in advance
    - Loddi

    I've been encountering the same problem and I think I've figured out the reason behind it and how to solve it.
    It appears that the class loader can only ever load one resource at a time. Once you've forced it to start downloading resources.jar, it can't load any classes until that download has finished, not even classes that are part of the Java API. In your case I believe the solution would be to display one loop of your idle animation before you start loading resources.jar, to make sure that everything the idle animation needs has already been loaded by the class loader.

  • Java applets won't load, have latest version of java installed, have removed all old versions from the hard drive, java console not working in firefox, any suggestions please ?

    java applets will not load,
    i have run the java test page & i have the latest version installed.
    have removed all old versions of java from my hard drive & restarted the computer.
    i have checked that java is enabled in the plug-ins and it is with version se 6 u22, also something called java development toolkit 6.0.220.4 np runtime script plug-in library for java (tm) deploy.
    if i click on java console in tolls nothing happens

    Hi,
    You might want to look in your control panel for 'Java' icon. It should give you an option to enable java plugin into your browser. Let me know if you still face the issue.
    Thanks!

  • Applet freezes while downloading a ressource jar!

    Hi everyone,
    I have a fundamental question concerning the loading mechanism of an applets resources.
    The problem is as follows:
    I have two jars, the first containing all *.class files, the second (size: 10MB) containing only graphics and sounds.
    I start the applet with this code:
    <APPLET ARCHIVE="init.jar,resources.jar" HEIGHT="100" [...]>Of course the point is to have the small init.jar loaded fast an display a loading animation while the big file is beeing loaded in the background. Up to here everything works as expected. When i start the applet, the init.jar is loaded and displays a loading animation as long as i try to get a resource from the resource.jar.
    When I do that, my applet freezes while the big resource.jar file is beeing downloaded.
    This is how i access the resource in the resource.jar
    public void run() {
         while(/*some condition*/) {
              // this is the line which blocks until whole jar is downloaded
              java.io.InputStream input = this.getClass().getClassLoader().getResourceAsStream(/*resource String*/);
              // use input to load resource
    }The freeze happens only upon the first time the while-loop runs, after that the resource.jar is chached and access is almost instant.
    Now the concrete problem is, that the applet freezed in all its threads while the jar is beeing downloaded. I NEED to display an idle animation while this is done.
    Has anyone any suggestion how i can avoid the complete freeze?
    I have already concidered to load the resources without specifing the jar in the HTML-ARCHIVE-Tag, this works becouse of the codebase i can load the ressources from, but the problem is, that these resources have a large overhead from the server to the client until i can use them in the program.
    Also it is no option to load them all on startup in another backgound thread (which would slove the freeze problem, i tried it), becouse i have to dynamically load and unload these resources to avoid OutOfMemory-Errors. Reloading them brings the overhead-Problem up again.
    Only when i specify the 2nd jar in the ARCHIEVE-Tag i have direct access to the browsers chache without wasting memory when holding references to all resources.
    After all every loading and stuff works, there are no errors in the programm only this strange behaviour. I Also tried it with different VMs, on different OS, and different Browser, all the same.
    I would be glad if someone could give me a hint on this, i've been searching for days now, even tried to analyse the Classoader sources but ended up in sun's native calls...
    Thank you in advance
    - Loddi

    Multiple post
    http://forum.java.sun.com/thread.jspa?threadID=5204797&messageID=9818313#9818313

  • Safari freezes while loading

    I am running Safari 4.03 on a G4 Mac with os x 10.4.11.
    About once a day, Safari will freeze while loading a page. The stop loading button does nothing. Eventually I have to force quit. Anyone know anything?

    I'm kinda a noobie to a mac so forgive me if this is lame. I was reading this post and i have kinda the same problem except when i go to open safari it just flashes and says that it can't be opened. I have reset safari and emptied the cache and it still won't open. Although sometimes when i go to open safari if i click on the top sites button in the far left corner when trying to open safari it will open that way and let me use safari to surf anywhere i propose to search. Any answers would be greatly appreciated. Thanks

  • Logic freezes while loading Space Designer presets

    Logic freezes while loading Space Designer presets when I am working on my template and songs. If I create 1 track in a new empty project there is no problem with Space designer.

    And with Logic 8, I am stumped as to how to find all of my samples and virtual instruments that I used in Logic 7...Where is the "folder" that I drag my Sampler Folder alias into? Any clues?

  • Java applet freezing over internet but not on harddrive

    Hi,
    So I have this java applet game, When running the webpage with it off my harddrive the applet runs fine. However, after putting my website on my server after leaving the second menu, into game mode, the java applet freezes. I don't think it's a code issue since it doesn't freeze when running off my harddrive, or when running in netbeans. What would cause this????
    hiraganakatakana.tantonj.com --- that's the url for the game, you'll see how it freezes after choosing one of the second options.

    tantonj wrote:
    ..So I have this java applet game, When running the webpage with it off my harddrive the applet runs fine. However, after putting my website on my server after leaving the second menu, into game mode, the java applet freezes. I don't think it's a code issue since it doesn't freeze when running off my harddrive, or when running in netbeans. You are really new to applets, aren't you? I don't care where you are running the applet from, but how it is being run. Is it being run in appletviewer, or a browser, or something else?
    ..What would cause this????Please fix that sticky '?' key.
    hiraganakatakana.tantonj.com
    java.lang.NoClassDefFoundError: runApp (wrong name: hiraganakatakana/runApp)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
           ....

  • Problems with java applets freezing.

    Okay, this is an extemely rare java problem (from what I know), and I have worked for months to fix it and nothing has worked so far.
    This is my problem: Whenever I use java applets, the screen freezes (still able to move mouse around) for about 10-20 seconds about twice a minute to once in ten minutes. This can make me very angry if I am in the middle of a game. I am POSITIVE it isn't my internet, I have Cable internet, one of the fastest. And after it is done freezing the applet runs perfectly, until it freezes again.
    PLEASE HELP ME! Thanks in advance, Zach.

    I decided to take a look, but the Bridge program requires a signup. Not interested, but the free Poppit game plays fine as a guest on my machine on both Safari 3.1 and FireFox 3.0b4.
    With FireFox I'm running AdBlock Plus, which can create problems with some sites, but the games loaded and played.
    Based on this, I'd check the time of day you are trying to use their site and see if there are more problems with certain times.

  • Java applet won't load on browser

    God, I've never been this frustrated with Java before.
    Ok, I created an applet in my eclipse IDE and ran it. It works. I decided to create a HTML file so that the applet would display on my firefox browser (my browser has no problem displaying java applets. All settings are fine).
    This is my HTML code:
    <html>
    <title>Site Selector</title>
    <body>
       <applet code = "SiteTesting.class" width = "300" height = "75">
       </applet>
    </body>
    </html>Now, my eclipse IDE creates a "src" or source folder and a bin folder. The bin folder is where the class files are kept. The HTML file was in the src folder. When I ran it, I got this:
    load: class SiteTesting.class not found.
    java.lang.ClassNotFoundException: SiteTesting.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.FileNotFoundException: F:\Workspace\RefreshalCourse\src\networking\SiteTesting\class.class (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 9 more
    Exception: java.lang.ClassNotFoundException: SiteTesting.classMakes sense, considering the class file isn't in the src folder. So I copied the class files into the src folder, ran the HTML file, and I got this:
    java.lang.NoClassDefFoundError: SiteTesting (wrong name: networking/SiteTesting)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NoClassDefFoundError: SiteTesting (wrong name: networking/SiteTesting)Huh. I took the html file and placed it in the bin folder where the class file was and I ran it and got the exact same error message above.
    I'm obviously doing something wrong. So, any help in fixing this will be most appreciated. Cheers

    Your java file starts with:
    package networking;Right?
    If so, the fully qualified name name of your class is networking.SiteTesting.
    Use this in the applet tag:
    <applet code = "networking.SiteTesting" width = "300" height = "75">Suppose you have your html file in the directory zzz.
    Put SiteTesting.class in zzz/networking/, like this:
    zzz/whatever.html
    zzz/networking/SiteTesting.class

  • Java applet is screwed under both FireFox and Konqueror the same way

    Ok, we have IcedTea6 Java Plugin now, and Scottrader streaming quotes applet is working both under FireFox and Konqueror.
    The problem it is sort  of screwed (similar way under FireFox and Konqueror) with respect to what I  see under Windows.
    What should I do, file the bug with www.iced-tea.org ?
    ***url fixed by skottish***
    Last edited by Fixed (2009-02-11 15:20:33)

    Inxsible wrote:
    So when you say screwed....you mean what exactly ?
    any errors? just the visual..what?
    By "screwed" I mean the inteface is seen just partially with respect to what I see under Windows Explorer -- only some buttons are avalilable.
    Another thing, but it's an old problem with real Java plugin, which was working under Konqueror long time ago -- the color of pull-down menus is dark-blue (text is not readable on it), while under Windows Exporer it is white.
    Are you averse to using Sun JRE if IcedTea is not working out for you?
    As to my knowledge, there is no Sun Java plugin for 64-bit Linux.

  • Java applet freeze completly browser

    Hi there
    Ive created a smalle board game in an ASP / Javascript page. The game is multiplayer and i connect everybody via an java applet to a java server.
    Well, it look like this :
    ASP / Javascript --> Applet --> JavaServer --> Applet --> ASP / javascript
    The game is just fine and completly functionnal. The problem is : We just brought in some video for the players who have Webcams. And those video freeze when the applet is waiting a response from the server. Is there anyway that the applet does not freeze the whole browser so that the video continu playing even if the game is waiting?
    the main window contain 2 sections, �video & chat� and the game. The game containt a few frames with one of them containing the applet. In the java applet, im using BufferedReader and PrintWriter with AppletSocket to communicate with the server.
    Im not sure if i have made myself clear, if not, tell me, ill try to make it clearer.
    Thanks in advance
    Marc
    P.S. sorry for my english

    There maybe some code will help most of you to understand better my problem.
    Here's the function in my asp pages that wait for the applet response.
    function AttendreReponse()
         AppletConnect.Recevoir();
         GererRecevoir();
    }The javascript function 'GererRecevoir()' get the code that was sent by the server, analyse it and then, do run the proper function so the game can go on normally..
    And here's the java function 'Recevoir()' in the applet
    public void Recevoir()
      // String received from the server
      String fromServer = "";
      this.paramTransaction = "";
      this.codeTransaction ="";
      try{
        // Reads the string received
        fromServer = this.in.readLine();
        if(fromServer != null)
          this.codeTransaction = fromServer.substring(0,2);
          if(fromServer.length() > 2){
            this.paramTransaction = fromServer.substring(2); //retrieve the 2 next ^^
      // Applet dosent receive anything anymore from the server
      catch (IOException e){
        System.out.println("Le serveur n'est plus en fonction");
        System.exit(1);
    }So the main problem is that the applet freeze the whole window then ge gets to : fromServer = this.in.readLine();
    He wait until he get a response or untill he timeout.
    What I would like, is that the applet does not freeze the whole window while waiting since videoconference, chatting and sound arent very usefull if you can use them 3/4 of the time.
    I hope this helped you to understand a little bit more.
    Thanks again
    Marc

  • Java Applet is not loading in Fire Fox

    Hi,
    I have a php page with a Java Applet. But that applet is not loading in the browser. I am using Mozilla/5.0 (X11; U; Linux i686; in fedora core 8.
    So give a suggestion to solve this problem.
    Waiting for ur reply.
    Regards
    Aneesh.K

    You might as well keep waiting - I tried to read your brainwaves but I couldn't detect any. So you need to actually post the error messages of the Java console you certainly looked at-

  • Java Applet Will Not Load.

    Hello! We have built some Java Applet games and we are having problems trying to load the games, specifically in the Safari browser. PC
    Problem 1 : Java loading issue on some PC’s Mac OSX
    Problem 2 : No games will play even with Java updated. Games playable at www.gameon247.com Does anyone have any helpful information they can share on this topic?
    All help is appreciated! 

    similar to
    http://support.mozilla.com/es/questions/788422#answer-142414?

  • Web logic 10.3  - WLDF Console Extension java applet is not loading

    Weblogic running in Solaris
    Navigating to the weblogic console using – HTTP like , http://host:port/console
    I was trying to enable WDLF console extension , as mentioned in documentation copied diagnostics-console-extension.jar to <domain>/console-ext folder. After this a I could see the “WLDF Console Extension” tab when I log into the admin console. But the java applet is failing to load - showing Error: Click for details , follwing are the details
    Java Plug-in 10.2.0.13
    Using JRE version 1.7.0_02-b13 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\user
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Appreciate your comments

    Do you see any further nested exceptions OR errors in the log file.
    Considering that the same WLS-JDK combination works on one machine and does not work on another machine, it indicates an environmental issue.
    "However installed Web Logic 10.3.6 (64bit) and Java JDK 1.6.0_31 (64bit) on that same server. The web page cannot be displayed....
    Have tried installed Web Logic 10.3.6 (64bit) and Java JDK 1.6.0_31 (64bit) in a test server (Windows Server 2008 R2 and 64-bit Operating System). The web page can be displayed with header and side menu."
    I am suspecting if it has to do anything with the native libraries being loaded JAVA_LIB_PATH.
    Please review the server log file again for identifying differences in LIB_PATH or PATH or any messages saying "Unable to load native.. performance pack.."
    Arun

  • Java Applets won't load in Netscape 4

    Hello,
    No java applets will load in Netscape 4. I checked to see if java plugins existed and they do I actually have about 4 different versions installed on my computer because I have been trying to resolve this issue. I looked in the browsers plugins directory it contains four java .dll files. Does anybody know whats going on? In internet explorer java applets load correctly.
    Thank You,
    Mark

    Perhaps it is due to your HTML code in the webpage? If you use the <APPLET> tag only, the applet may not run in all browser/platform. You can use HtmlConverter that comes with JDK/JRE 1.4 in order to generate HTML code which allows your applet to run in any browser/platform.
    Hope it helps,
    A.A.
    Hello,
    No java applets will load in Netscape 4. I checked to
    see if java plugins existed and they do I actually
    have about 4 different versions installed on my
    computer because I have been trying to resolve this
    issue. I looked in the browsers plugins directory it
    contains four java .dll files. Does anybody know whats
    going on? In internet explorer java applets load
    correctly.
    Thank You,
    Mark

Maybe you are looking for