在 Mac OSX 上运行 Java 7 EE SDK 的 .sh 安装程序需要哪些显示设置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20607777/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What DISPLAY settings needed for running .sh installer for Java 7 EE SDK on Mac OSX
提问by therobyouknow
When I attempt to run the shell...
当我尝试运行 shell 时...
From the install manual: Java Platform, Enterprise Edition 7 SDK - Installation Instructions
来自安装手册:Java Platform, Enterprise Edition 7 SDK - Installation Instructions
Solaris, Linux, and Mac OS X systems:
If necessary, grant execute permissions to the distribution file: chmod +x ./ distribution-filename
At the command prompt, type: sh ./ distribution-filename
Solaris、Linux 和 Mac OS X 系统:
如有必要,授予分发文件的执行权限:chmod +x ./ distribution-filename
在命令提示符下,键入:sh ./ distribution-filename
It says it needs the DISPLAY variable set - what do I need to set it to?
它说它需要设置 DISPLAY 变量 - 我需要将它设置为什么?
a12-macmini-02:Downloads rdavis$ ./java_ee_sdk-7-jdk7-macosx-x64-ml.sh
This program requires DISPLAY environment variable to be set.
Please re-run after assigning an appropriate value to DISPLAY.
采纳答案by devnull
It says it needs the DISPLAY variable set - what do I need to set it to?
它说它需要设置 DISPLAY 变量 - 我需要将它设置为什么?
Instead of saying:
而不是说:
./java_ee_sdk-7-jdk7-macosx-x64-ml.sh
say:
说:
DISPLAY=:0 ./java_ee_sdk-7-jdk7-macosx-x64-ml.sh
Alternatively, you could get the tarball installer instead and extract it to the desired location.
或者,您可以获取 tarball 安装程序并将其解压缩到所需位置。