Windows 8.1. Installed java, but with no success. After java install it want to verify, that java is installed properly, but then it breaks off, and Windows write, that the program has a fault, and has beeen shut down.

In windows log I can see this:

Name of program with error: java.exe, version: 7.0.450.18, tidsstempel: 0x525404d0
Name of module with error: d3d9.dll, version: 6.3.9600.16384, tidsstempel: 0x52158d9b
exception code: 0xc0000005
Forskydning med fejl 0x00023679
Proces-id 0x2738
Programs starttime 0x01ced1cc909866fc
Programpath: C:\Program Files (x86)\Java\jre7\bin\java.exe
Modulpath: C:\WINDOWS\system32\d3d9.dll

What to do about this?