Ermanno Piergiacomi
asked on
Java problem on X11 with Linux
on linux centos 7 this: https://www.midvisioncloud.com/ibm-websphere-on-microsoft-azure/ibm-bpm-microsoft-azure/
i try to install DB2 Developer https://www.ibm.com/it-it/marketplace/ibm-db2-direct-and-developer-editions
I have configure GUI for server using this web resource: https://linuxconfig.org/how-to-install-gui-gnome-on-centos-7-linux-system
I install xrdp and I started server with GUI and xrdp server
I open firewall ports 3389 and I login in server with rdp access
when i try to install DB2 Developer setup i found:
[root@OpificioBPM server_dec]# ./db2setup
DBI1190I db2setup is preparing the DB2 Setup wizard which will guide
you through the program setup process. Please wait.
Exception in thread "main" java.awt.HeadlessException :
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironme nt.checkHe adless(Gra phicsEnvir onment.jav a:217)
at java.awt.Window.<init>(Win dow.java:5 47)
at java.awt.Frame.<init>(Fram e.java:431 )
at java.awt.Frame.<init>(Fram e.java:396 )
at LoadingGraphic.<init>(Unkn own Source)
at LoadingGraphic.main(Unknow n Source)
The DISPLAY variable is not set properly. Ensure that the DISPLAY variable is set properly and that permissions are set properly to open windows on the display specified, then rerun the command.
I try to set DISPLAY variable with this values:
export DISPLAY=IP SERVER:0.0
export DISPLAY=localhost:0.0
export DISPLAY=localhost:0
export DISPLAY=:0
BUT I ALWAYS X11 ERROR ON RUN ./db2setup
I try to exec xhost + but I found error: unable to open display
i try to install DB2 Developer https://www.ibm.com/it-it/marketplace/ibm-db2-direct-and-developer-editions
I have configure GUI for server using this web resource: https://linuxconfig.org/how-to-install-gui-gnome-on-centos-7-linux-system
I install xrdp and I started server with GUI and xrdp server
I open firewall ports 3389 and I login in server with rdp access
when i try to install DB2 Developer setup i found:
[root@OpificioBPM server_dec]# ./db2setup
DBI1190I db2setup is preparing the DB2 Setup wizard which will guide
you through the program setup process. Please wait.
Exception in thread "main" java.awt.HeadlessException
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironme
at java.awt.Window.<init>(Win
at java.awt.Frame.<init>(Fram
at java.awt.Frame.<init>(Fram
at LoadingGraphic.<init>(Unkn
at LoadingGraphic.main(Unknow
The DISPLAY variable is not set properly. Ensure that the DISPLAY variable is set properly and that permissions are set properly to open windows on the display specified, then rerun the command.
I try to set DISPLAY variable with this values:
export DISPLAY=IP SERVER:0.0
export DISPLAY=localhost:0.0
export DISPLAY=localhost:0
export DISPLAY=:0
BUT I ALWAYS X11 ERROR ON RUN ./db2setup
I try to exec xhost + but I found error: unable to open display
Hi,
first make sure that you have installed all the required packages:
first make sure that you have installed all the required packages:
yum install -y xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps
Cheers
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Anyway, your error is probably caused by the fact that X is probably not running on that server