Java2D OpenGL Hardware Acceleration Doesn't Work

Posted by Aaron on Stack Overflow See other posts from Stack Overflow or by Aaron
Published on 2010-05-25T00:44:21Z Indexed on 2010/05/25 0:51 UTC
Read the original article Hit count: 412

Filed under:
|
|
|

It doesn't work with OpenGL with even the simplest of programs. Here is what I am doing..

java -Dsun.java2d.opengl=True -jar Java2Demo.jar

(Java2Demo.jar is usually included with the JDK..)

The text output is:

OpenGL pipeline enabled for default config on screen 0

When I don't pass in the above VM argument things work fine (but slowly). When I do pass in the above argument nothing shows up... If I move the window around it captures whatever image it was on top of and jumbles it into nonsense.

I'm running Windows XP Pro SP3 (Microsoft Windows XP [Version 5.1.2600]) (under Parallels on OS X 10.5.8)

I used "Geeks3D GPU Caps Viewer" to tell me I have Open GL version:

2.0 NVIDIA-1.5.48

I have tried this with two version of the JVM. First:

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode)

and second:

java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

© Stack Overflow or respective owner

Related posts about java

Related posts about opengl