<

How to prevent Java2 update 10 Java2D graphic glitches

Published on
6,060 Points
3,060 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
Comment
0 Comments

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Join & Write a Comment

This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month