Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.
like image 565
therobyouknow Avatar asked Dec 16 '13 09:12

therobyouknow


1 Answers

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.

like image 140
devnull Avatar answered Nov 04 '22 10:11

devnull