简体   繁体   中英

What DISPLAY settings needed for running .sh installer for Java 7 EE SDK on Mac OSX

When I attempt to run the shell...

From the install manual: 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

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.

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

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.

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