Online Java and Flash Games

I have had this problem forever and I'd love to know if there's a solution.

On Safari, Firefox, and Opera I simply cannot play online games.

Flash games run disgustingly slow on all three web browsers, but still function. Java games, however, simply crash. An example is Pogo's online java games - the chat applet will load, the game will load and instantly crash upon completion. It closes the pop-up window, though the rest of the browser pages/tabs are fine. I'd really like to know if there is a solution, I already repaired my disk permissions, rebooted, etc etc. Note: Websites created entirely in Flash function perfectly fine, though they lag a bit.

I'm on a 1 GHz PowerBook G4 with 1 MB L3 cache and 768 MB SDRAM, on Mac OS X Tiger 10.4.11.

Thanks for any help you can give.

Powerbook G4, Mac OS X (10.4.11)

Posted on Feb 26, 2009 8:47 PM

Reply
32 replies

Mar 11, 2009 5:04 PM in response to intempo

I'm running a roughly 7-8 yr old PowerPC system (Powerbook G4) and I was able to run Dots and Boxes with absolutely no issues on Firefox. The load time was a bit long but the game worked. On Safari 3 it loaded relatively faster and played more reliably, though it worked absolutely fine on both browsers. I hope this was helpful to you, intempo.

I believe my computer can handle this one because it is more basic. Whenever there are large images being loaded it will kill the game, and if there is a lot of activity in the game (ex. more than 17 things moving around) flash and java games will stall and my browser will close. I still have no idea why this is, and because I do not have an intel processor I cannot switch Safari onto Intel like BruceWayneUK helpfully suggested.

Mar 11, 2009 5:17 PM in response to demondragon6

Thank you for the response, demondragon6.
The behavior you described makes me think that the cause of the problem on your machine is the lack of RAM. I don't know for sure how much memory is available to a Web browser on PowerPC, but it looks that it is limited. That is why the browser closes while running "heavy" games. How much RAM is in your system? I recommend that you monitor the memory usage with a system utility. You can also try installing the latest Opera - maybe, it will differ from Firefox and Safari.

Mar 11, 2009 7:08 PM in response to arshler

Yes, this is the file I was talking about. Can you open it with a text editor? And find the line that starts with "deployment.javapi.jre.1.5.0.args="? If such a line is missing, insert it into the file, the inserted line should look like this:
deployment.javapi.jre.1.5.0.args=-Xmx256m -Xms64m
This is what I asked you to do in the previous message, sorry for not being clear enough. However, now I'm doubting that this editing will help. I have read more articles and threads related to the problem you are experiencing and came to conclusion that Safari on a computer with an Intel processor can fail to recognize the Java runtime installed via the Update manager. That is, the problem is specific to Intel machines and Java SDK installed using the Update feature of Mac OS. In September another user came across the same issue as you - it was reported here:
http://discussions.apple.com/thread.jspa?threadID=1708113
If you read the thread, you will learn that the user could successfully run Eclipse, so Java worked for ordinary applications and the problem only was with Java applets in Safari. Apparently, the Update manager doesn't enable Java for applets or doesn't set some required parameters in the system. Therefore, I recommend that you download a separate installation package from this page:
http://support.apple.com/downloads/Javafor_Mac_OS_X_10_5_Update2
and install it into your system over the existing Java installation which was made via the Update manager.
If you do it and this doesn't solve the problem, try editing the "deployment.properties" file as I described in the beginning of this message.
I'm looking forward to hearing your results.

Mar 11, 2009 8:00 PM in response to arshler

Well, we've gone a long road, I believe we should be close to an end 🙂
There is one thing that confuses me in the configuration of your system - the counter on my Web site told me that you are using Safari 4.0. All messages I read were related to version 3.x of this browser. Maybe - if my counter doesn't lie 🙂 - the problem is peculiar to Intel machine and Safari 4.0 ... It would be nice if somebody else shared their experience about running Java applets on a computer with the same configuration.
Meanwhile, let's check if the issue is only reproduced in Safari. Please, download Opera from this page:
http://www.opera.com/browser/download/?os=mac&ver=9.64&local=y
Install it and make sure that Java is enabled (it should be by default): go to Tools > Options, switch to the Advanced tab, select the Contents category and see if the Java box is checked. If it is, try loading a page with a Java applet using Opera and let me know if you get any error messages.

Mar 11, 2009 8:40 PM in response to arshler

I'm glad to hear that, finally, you are able to play Java games! 🙂
It's a pity though that the built-in browser doesn't work as expected. Most users won't guess to install Opera or Firefox 😟 Maybe, this bug is only in the beta version of Safari 4. Hopefully, Apple developers will read the thread and will fix the issue.
As for the games, if you experience any difficulties understanding the rules or playing them, please do not hesitate to let me know about it - I will improve the documentation. It should be easier than investigating an issue on a remote Mac station 😉

Mar 11, 2009 9:09 PM in response to intempo

Thank you very much for all of your help. I checked out the activity monitor and noticed that a lot of memory is considered inactive (232.84 MB) and roughly 56.60 MB of memory is considered free. I'm not terribly sure what the difference is between inactive and free memory, but the games run considerably faster now that I've closed some apps running in the background, along with deactivating dashboard. Still a bit lagging, but perhaps that has a bit to do with just how old my computer is in general.

Overall though, I'd say this problem has been mostly solved for me 🙂 Thank you!

Mar 12, 2009 8:48 AM in response to demondragon6

I'm glad to hear that my piece of advice has helped you.
My main tutor - Google 🙂 - provided me with a very informative page where you can find a description of the memory types displayed by the Activity Monitor:
http://support.apple.com/kb/HT1342
Apparently, some applications running in your system occupied that 232.84 MB of RAM and didn't use the data for long, so this part of RAM was marked as Inactive. However, this memory wasn't freed when the browser needed more memory to run the games and it had to use virtual memory (the disk space). This is how I would explained the reason for the games to work slowly or even crash the browser. Now you closed some apps and that Inactive memory becamed free and thus the browser didn't have to use the disk memory which is much slower than RAM.
I don't know if it is possible to add some RAM to your system or to replace the existing memory module, but I would recommend you to do it: SDRAM is slower than DIMM, so if your PC supports this memory type, upgrading to DIMM would speed up your machine.

Mar 12, 2009 8:55 AM in response to arshler

You are welcome!
Well, the behavior of Safari in regard to Java applets is puzzling me more than all of my logic games together LOL.
Maybe, if you left Safari 3, installing Java Update separately would repair it? I think that the problem is browser-specific, it definitely has nothing to do with the Java runtime. Most likely, Firefox will work properly. Anyway, I recommend that you contact Apple support and let them know about the issue so that they have fixed it in the final release of Safari 4. I think that I cannot report it as I'm not their customer.

Mar 14, 2009 11:40 AM in response to BruceWayneUK

I just spent two hours at the Apple store having them look at my computer and try to figure out why Java doesn't work. They couldn't figure it out and were going to charge me 75 bucks to continue looking at it. I was like, no. I'll be okay and came home and looked it up.

And what you said worked perfectly for me. So I just want to say thank you. You made my life easier.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Online Java and Flash Games

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.