I have a Java
xservice.jarInside Amazon Machine Images (AMI), When
the AMI lunch Linux EC2 Instance, This Instance lunch/execute my
service.jar while Instance Start up by python script defined as
init.d, And Then Service
result files try to Generate/Creates Graph Images files in background.
But unexpectedly, I’m getting below exception from
xservice.jar during creation of image files.
java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
Now, I’m explaining you gays my tried part through RND Process
I execute this command
Linux EC2 Instanceand
then I execute my Java
Java -jar xservice.jar >"/var/www/images/result_fileX1.fasta"
It successfully generate the Graph Image result_fileX1.png
When I tried & expect
same result Automaticallyfrom
Linux EC2 InstanceJava Service gives
HeadlessException: No X11 DISPLAY variable was set.
already configure export DISPLAY=:0.0command
XYZ AMI Lunching Linux EC2 Instance without X11 Graphic
, I do test it by command
newly created EC2 Instance.
Also, I confirmed that no issue with my Java Application xservice.jar
Try to find some solution or hints over Stack Overflow
“No X11 DISPLAY variable” – what does it mean? and
Fake X11 display? and Exception in thread “main” java.awt.HeadlessException: No X11 DISPLAY and How to point Amazon EC2 Linux DISPLAY to X11 on my Macbook?
Gays, I need your helps to to fix the issue or At-least need to Identify my problem where/what I’m missing.