Java lang InternalError Can t connect to X11 window server using 0 0 as the value of the DISPLAY variable in jenkins

0 votes

Hi Guys,

I am getting this below error, when I am trying to build one job in jenkins.

 java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
	at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

	at sun.awt.X11GraphicsEnvironment.access$100(
	at sun.awt.X11GraphicsEnvironment$
	at Method)

	at sun.awt.X11GraphicsEnvironment.<clinit>(
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(
	at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(

	at org.lobobrowser.util.gui.FontFactory.<init>(
	at org.lobobrowser.util.gui.FontFactory.<clinit>(

	at org.lobobrowser.html.domimpl.NodeImpl.<clinit>(
	at org.lobobrowser.html.parser.DocumentBuilderImpl.createDocument(
	at org.lobobrowser.html.parser.DocumentBuilderImpl.parse(

How can I solve this error.

Thank You


Apr 3, 2020 in Jenkins by akhtar
• 38,220 points

1 answer to this question.

0 votes


I guess you are trying to use your screen for GUI program. But jenkins not able to run your GUI program.

To use that you have to export your display first.

export DISPLAY=:1

Thank You

answered Apr 3, 2020 by MD
• 95,320 points

Related Questions In Jenkins

0 votes
1 answer

How do I pass value from my Fake # script to the host build server (Jenkins)

You can use the EnvInject plugin to pass environment ...READ MORE

answered Jul 11, 2018 in Jenkins by Kalgi
• 2,680 points
0 votes
3 answers

How to get the Maven Version of a project in Jenkins?

Here is a snippet from our Jenkins ...READ MORE

answered Oct 4, 2019 in Jenkins by Petr Doležal
0 votes
1 answer

How to deploy the war file in Tomcat Server with Jenkins pipeline job on an windows machine?

Use deploy to container plugin. Go to the ...READ MORE

answered Sep 30, 2020 in Jenkins by Adil Abdullah Khan
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer

What is the use of using declarative pipeline (i.e jenkins file) over scripted pipeline in real time

Hi@Shashi, The declarative pipeline is a relatively new ...READ MORE

answered Oct 28, 2020 in Jenkins by MD
• 95,320 points
0 votes
1 answer