Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins can't connect to window server - not enough permissions

I've just installed at local a Jenkins server in order to execute some tests using Selenium Webdriver.

When I execute the tests, the initial steps are executing well (maven calls, access to repo,...) but when the first selenium step have to be executed, I get this error:

(java.lang.InternalError: Can't connect to window server - not enough permissions.)

What permissions are refered?

I'm executing from my main user in my computer in a MacOSX. I've looked information in jenkins site and google, but I can get anything.

like image 663
Dr. No Avatar asked May 13 '13 10:05

Dr. No


1 Answers

Add JVM options -Djava.awt.headless=true

On the instance I use, the "JVM Options" field is only visible from the "Advanced..." button under the Launch Method sub-heading.

like image 196
plsgogame Avatar answered Oct 11 '22 12:10

plsgogame