Disabling DirectDraw for Java (running SPSS 17)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
userexcel
Newbie
Newbie
Posts: 1
Joined: Fri May 24, 2013 6:40 pm

Disabling DirectDraw for Java (running SPSS 17)

Post by userexcel »

I'm trying to run SPSS 17 and it seems to work okay except for the fact that the window looks blank unless I "refresh" individual widgets by clicking on them, sometimes mousing over. I have figured out this has to do with disabling DirectDraw because if I run an individual .jar like licenseactivator.jar with the command

Code: Select all

wine JRE/bin/java -Dsun.java2d.noddraw=true -jar licenseactivator.jar
it works fine and the "blankness" problem goes away. As you can tell, I'm using the JRE included with SPSS (1.5.0_14-b03). I have added the "-Dsun.java2d.noddraw=true" parameter to the "Java Runtime Parameters" under the "Java Applet Runtime Settings" in the control panel (by running "wine javacpl.exe" in the JRE/bin folder inside the SPSS install). I tried doing the same under the "Java Application Runtime Settings" but clicking "View" there always freezes the control panel and I can't go further.

I would love it if someone knows how to disable DirectDraw whenever this JRE is used. I guess there are other ways of solving this problem. If SPSS simply had some .jar I could run to get the "main program", I could simply create a launcher that uses the parameter when running java. Alternately if there was a way to get X11 to draw this properly anyway, or to get wine force the JRE to not use DirectDraw. I've even been thinking about writing my own "java.exe" and "javaw.exe" that simply call the original executables and pass the arguments they get plus the "-Dsun.java2d.noddraw=true" parameter.

Any ideas? Thanks for any help.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Re: Disabling DirectDraw for Java (running SPSS 17)

Post by DanKegel »

I wonder if disabling ddraw.dll would help... hmm, guess not.
http://bugs.sun.com/bugdatabase/view_bu ... id=4756305
Locked