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:
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
Unzip installation manually
edit bash profile
vi ~/.bash_profile
set variable
export DISPLAY=<VALUE>
save and close and to test
echo $DISPLAY
精彩评论