简体   繁体   中英

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.

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.

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

edit bash profile

vi ~/.bash_profile

set variable

export DISPLAY=<VALUE>

save and close and to test

echo $DISPLAY

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM