开发者

java linux centos DISPLAY environment variable

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

But wh开发者_StackOverflowen 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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜