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

15,844

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.

Share:
15,844
therobyouknow
Author by

therobyouknow

I enjoy making software and applying technology to help myself and friends and family achieve things as well as earning a living doing it. github.com/therobyouknow linkedin.com/in/therobyouknow twitter.com/therobyouknow

Updated on June 05, 2022

Comments

  • therobyouknow
    therobyouknow almost 2 years

    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.