How to Install Java 7 EE SDK Download in .sh Format for Mac OSX

I am new to Java development on Mac OSX. I wanted to download the Java 7 EE SDK so that I could work on both desktop and mobile / corporate with Java. A .sh download file (specifically java_ee_sdk-7-jdk7-macosx-x64 ) that I am not familiar with. The Java 7 SE SDK is the .dmg file that I expected for the Enterprise version instead of the .sh file.

  • Why do SE and EE files use different file formats? ( .sh vs .dmg )
  • How to install Enterprise Edition in that it is a .sh file?

* Note. Currently, the only version of JRE installed on the Mac is the version of Apple that I understand is outdated.

+8
java java-ee-7 macos
source share
3 answers

Run it on the command line.

Installation Guide: Java Platform, Enterprise Edition 7 SDK - Installation Instructions

Solaris, Linux, and Mac OS X Systems :

  • If necessary, execute permission for the distribution file: chmod + x. / Distribution-name

  • At the command prompt, type: sh./ distribution file

For future reference, the * .sh file is a shell script . You can check shebang ( #! ) In the first line of the file to see which shell should be used to interpret the script. In the case of the JavaEE 7 installer, shebang #!/bin/sh , which points to a Bourne compatible shell .

+8
source share

Found a solution on this link:

https://apple.stackexchange.com/questions/63381/installing-glassfish-on-mountain-lion

I tried the export DISPLAY=:0 command and skipped the message "This program requires ...".

Hope this helps

+6
source share

glassfish-3.1.2.2-unix.sh is required to set the DISPLAY environment variable. Try again after setting the appropriate DISPLAY .

export DISPLAY=:0
chmod +x java_ee_sdk-7-jdk7-macosx-x64-ml.sh
./java_ee_sdk-7-jdk7-macosx-x64-ml.sh

+6
source share

All Articles