<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

How to prevent Java2 update 10 Java2D graphic glitches

Published on
6,090 Points
3,090 Views
Last Modified:
If you have upgraded to Java2 update 10 on a Microsoft Windows client, you may have discovered that your Java application does not work as it did before.  For example, the colors of your Java2D graphic may be all wrong for no apparent reason.

After I upgraded, I discovered the reason for this is that Java2 update 10 uses by default the Direct3D pipeline for accelerating the rendering of Java applications.  This is good for performance, but exposes your application to the incompatibilities and the platform-dependencies of a particular graphics driver (e.g., my PC has a Radeon HD 2400).

So if you hit this issue, the first thing to do is to download the latest driver for your graphic card.

If this still doesn't help, you can disable the accelerated graphic pipeline for Java2D by launching your Java app with this parameter:
 
-Dsun.java2d.d3d=false

Open in new window


Hope that helps!
0
0 Comments

Featured Post

C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month