Page 1 of 1

java.awt.AWTError: Can't connect to X11 window server using '<IP>:0.0' as the value of the DISPLAY variable.

Posted: 09 Sep 2018, 01:32
by virtualfrancky
OK so I have install filebot 4.8.2 from the debian repository, java is installed and Java_Home define.

Code: Select all

(1:92)# filebot -version
FileBot 4.8.2 (r5789) / Java(TM) SE Runtime Environment 10.0.2 / Linux 4.15.0-33-generic (amd64)

Code: Select all

(1:95)# echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
My license key is uploaded in my home directory
I type

Code: Select all

filebot --license Filebot_License_4301459.psm
I got an error after a while :

Code: Select all

((1:118)# filebot --license FileBot_License_P4301459.psm
Error during startup
java.awt.AWTError: Can't connect to X11 window server using '86.213.163.107:0.0' as the value of the DISPLAY variable.
        at net.filebot.Main.main(Main.java:142)
FYI I am under Ubuntu 16.04 minimal

Re: Problem when activating the license

Posted: 09 Sep 2018, 04:04
by rednoah
If you run filebot --license on a headful machine then it'll launch the GUI and show you a confirmation dialog. However, there is some X configuration issue on your machine that makes the GUI not work.


This is a generic issue not specific to FileBot. You should be able to find help via Google by Googling the error message:

Code: Select all

Can't connect to X11 window server using ... as the value of the DISPLAY variable

If you run this command, then it'll force headless mode, and you'll be able to install the license, but this will not fix your X11 issues:

Code: Select all

filebot -check --license Filebot_License_4301459.psm

Re: java.awt.AWTError: Can't connect to X11 window server using '<IP>:0.0' as the value of the DISPLAY variable.

Posted: 09 Sep 2018, 07:01
by virtualfrancky
OK thank you, I am on a server with no GUI install.

Re: java.awt.AWTError: Can't connect to X11 window server using '<IP>:0.0' as the value of the DISPLAY variable.

Posted: 09 Sep 2018, 13:30
by rednoah
You can force headless behavior by settings this environment variable:

Code: Select all

export JAVA_OPTS="-Djava.awt.headless=true"
Alternatively, installing only headless Java, instead of the complete runtime with GUI support, will do the trick as well.