Under windows, java2d applet is working in eclipse but not in web browser

Hi,
I have 3 very similar applets that work fine in linux & mac os x (and until recently windows as well), but today I’ve noticed they stopped working under windows when opened in a web browser (latest ff & ie 8 ) :

Dynamite Fish’n

Abstract Meta Game

Lord of His Domain

However, they still work in windows when i run them in eclipse (as well as on linux and mac os x either in eclipse or in the browser). This has been confirmed by several other people.

No error is shown in the java console when the applet is playing in the browser, just a blank white box is displayed.

The source code, jars and html files for all 3 applets can be had here.

Any idea what might have caused this odd error? Could it have been the recent 1.6_21 update?

They all worked fine for me on vista64 on firefox.

Which version of java, zoto?

It might just be the latest update (1.6_21).

works fine here on winxp 32bit with 1.6.0_21.

Its likely that java somehow messed up the upgrade procedure and corrupted the install (not uncommon, see thread relating to java 1.6.0_20 upgrade).

What i’d recommend you try is uninstall java and do a fresh install.

Uninstalling and reinstalling the jre & jdk didn’t seem to help.

Strangely java does manage to start, as the console comes up, but it just seem to not update the applet’s rendering region:

The text you see inside the applet’s area is the content of the previous browser tab. In IE 8 it also doesn’t seem to render anything inside the applet.

I have the same problem you have here, ido .

Windows XP, java 1.6.0_11-b03, Firefox . It does not even show the java console .

however , with I.E. 7.0.57 it runs just fine .
weird …

@ido are you sure its the 1.6.0_21 update? does downgrading to 1.6.0_20 make it work again?

Nope, I tired it just before and it seems downgrading to 1.6_20 didn’t help either.

ok, so seems this problem isn’t specific to the 1.6.0_21 upgrade then.

Do other java applets work ? also can you try non java2D applets (like pulpcore applets, lwjgl applets)?

Other java2d applets work, pulpcore applets work & lwjgl applets also work…

Very strange. ???

ok, guess the next logical assumption to make would be that the java cache of your applet jars has become corrupt (although odd that no exception is thrown in the console).

So try clear your java cache (from the java control panel) and try launch your applets again?

That’s the first thing I tried- it didn’t help and the problem doesn’t happen just on my machine but also on 3 others (including teletubo).

Create an applet that renders 1 colored rectangle. Work from there.

Either that, or deactivate functionality in your current applet and see when it starts working again.

That’s probably what I’ll have to do Riven, too bad the problem manifests itself on my work computer (it works fine at home), and also that the same version used to work on this computer before…

Nevermind my case. It works now, I think I just had Firefox not correctly configured (I’m at work and we had a format a few days ago) .

What was it? Perhaps it can help me solve my issues here.

If it really is just a local issue rather than a systematic one that’d be good news.

Just out of curiosity what graphics card do you use on that machine? were the drivers changed recently?

Although a long shot could you try if the applet works when all graphics hardware acceleration is disabled?

This is done using the following parameter inside your applet tag

<param name="java_arguments" value="-Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false">

Awesome Kapta!

That did the trick ;D ;D ;D

Didn’t seem to slow down anything, either.

For the record, the part of it that did the trick was “-Dsun.java2d.opengl=false”.