DX won't init on win2k machine

I wanted to test my WIP game on my old windows 2000 machine. DirectX fails to initialize on it. Here’s my info:

duron 800
512mb ram
nvidia 4200ti w/128mb ram
windows 2000 professional w/sp4
DirectX: 9.0c
Nvidia driver: 93.71 from 10/22/2006 (appears to be the newest one for my card looking at Nvidia’s website)
JRE: 1.6.0_07-b06

Here’s the output from J2D_TRACE_LEVEL=4:

[W] GetFlagValues: DDraw screen locking is disabled (W2k, XP+)
[I] InitDirectX
[V] CheckRegistry: Found Display Device 0: NVIDIA GeForce4 Ti 4200 with AGP8X
[I] CreateDevice: lpGUID=0x0 hMon=0x0
[I] DDSetupDevice
[E] CheckDDCreationCaps: previous surface creation failure detected
[E] DDsetupDevice: Failed to setup ddraw device

I also set the J2D_D3D_NO_HWCHECK=true environment variable thinking it might be due to win2k but to no avail.

The game runs fine, but is rendered in software and dirt slow. :frowning: I’ve run the game on various other winxp machines without problems.

Any thoughts?

J2D_D3D_NO_HWCHECK=true

this one is only applicable since 6u10.

Run java gui app with -Dsun.java2d.accelReset=true flag once, it’ll reset
the registry settings. However, if another failure is detected ddraw will
be disabled again.

Dmitri

Thanks Dimitri that fixed it!

I’ve noticed that most roads lead to Dimitri when it comes to troubleshooting Java2D issues. I would think that it’s a bit of a waste of your time having to answer the same questions repeatedly on such issues. I did google around and i read the Java2D troubleshooting guide http://java.sun.com/javase/6/webnotes/trouble/TSG-Desktop/html/java2d.html before posting. Will that guide be updated at some point, or is there another repository that holds all these great tidbits of information?

thanks again,
~don

Since this information (the registry reset flag) will no longer be relevant once 6u10 ships, I don’t think it makes sense to update the guide.

Dmitri