Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java linux centos DISPLAY environment variable

I have download java_ee_sdk-6u2-unix-ml.sh for install on CENTOS.

But when try install - receive this error:

This program requires DISPLAY environment variable to be set.
Please re-run after assigning an appropriate value to DISPLAY.

But this is server - I cannot install graphic system. What can i do? Thanks.

like image 916
Lorenzo Manucci Avatar asked Aug 31 '26 23:08

Lorenzo Manucci


2 Answers

Try this, before executing:

export DISPLAY=:0

If you're connecting through Putty to a headless system, don't forget to have X11 client on your local machine.

like image 113
jacktrades Avatar answered Sep 03 '26 14:09

jacktrades


You can either:

  1. Generate an answer file on any machine wich has GUI (run setup in dry run mode)

    ./java_ee_sdk-6u2-unix-ml.sh -n template

    and then use that template on server machine with silent mode option

    ./java_ee_sdk-6u2-unix-ml.sh -a template -s

  2. Unzip installation manually

like image 21
barti_ddu Avatar answered Sep 03 '26 14:09

barti_ddu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!