# Why is Wine X11 not creating a window on my Mac?

I have the wine software on my mac and I have a little problem here:

I try running my windows executable and I get this error in the console:

Application tried to create a window, but no driver could be loaded. make sure that your X server is running and that $DISPLAY is set correctly. Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that$DISPLAY is set correctly. err:ole:apartment_createwindowifneeded CreateWindow failed with error 126

I have my DISPLAY set to 0.0 and WINEPREFIX set to x.

Please show me how to fix this with exact code/steps because I am new to this.

Thanks!

-

## migrated from stackoverflow.comJul 29 '11 at 12:40

This question came from our site for professional and enthusiast programmers.

What OS version are you using? Are you trying to launch from Terminal.app? –  mipadi Feb 1 '11 at 5:01
Mac OS 10.6.6 I am trying to run windows executables. –  Dan the Man Feb 1 '11 at 14:27
and I am running it by just double clicking it. and it opens WineHelper –  Dan the Man Feb 1 '11 at 14:28