在Mac OSX上运行Java 7 EE SDK的.sh安装程序需要哪些显示设置 [英] What DISPLAY settings needed for running .sh installer for Java 7 EE SDK on Mac OSX

查看:101
本文介绍了在Mac OSX上运行Java 7 EE SDK的.sh安装程序需要哪些显示设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行shell时...

When I attempt to run the shell...

从安装手册中:Java平台企业版7 SDK- 安装说明

From the install manual: Java Platform, Enterprise Edition 7 SDK - Installation Instructions

Solaris,Linux和Mac OS X系统:

如有必要,向分发文件授予执行权限: chmod + x ./发行文件名

If necessary, grant execute permissions to the distribution file: chmod +x ./ distribution-filename

在命令提示符下,键入:sh ./distribution-filename

At the command prompt, type: sh ./ distribution-filename

它说它需要设置DISPLAY变量-我需要将其设置为什么?

It says it needs the DISPLAY variable set - what do I need to set it to?

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.

推荐答案

它说它需要设置DISPLAY变量-我需要设置什么 来吗?

It says it needs the DISPLAY variable set - what do I need to set it to?

与其说:

./java_ee_sdk-7-jdk7-macosx-x64-ml.sh

说:

DISPLAY=:0 ./java_ee_sdk-7-jdk7-macosx-x64-ml.sh

或者,您可以获取tarball安装程序,然后将其解压缩到所需位置.

Alternatively, you could get the tarball installer instead and extract it to the desired location.

这篇关于在Mac OSX上运行Java 7 EE SDK的.sh安装程序需要哪些显示设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆