export DISPLAY Not Working Inside Linux AMI Java Service Exception No X11 DISPLAY

I have a Java xservice.jar Inside 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
Service inside init.d, And Then Service xservice.jar Reading .pasta
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 export DISPLAY=:0.0 on Linux EC2 Instance and
then I execute my Java xservice.jar by cmd Java -jar xservice.jar >"/var/www/images/result_fileX1.fasta"
It successfully generate the Graph Image result_fileX1.png

But

When I tried & expect same result Automatically from XYZ AMI lunched
Linux EC2 Instance Java Service gives exception
HeadlessException: No X11 DISPLAY variable was set.

Where I’m already configure export DISPLAY=:0.0 command before
creating my XYZ AMI But XYZ AMI Lunching Linux EC2 Instance without X11 Graphic
, I do test it by command echo $DISPLAY on 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.