I am new to developing Java on Mac OSX. I wanted to download the Java 7 EE SDK so I could both desktop/mobile/enterprise development with Java. The download file is .sh
(specifically java_ee_sdk-7-jdk7-macosx-x64
) which I am not familiar with. The Java 7 SE SDK is a .dmg
file which is the format I expected for the Enterprise Edition instead of the .sh
file.
.sh
vs .dmg
).sh
file?*Note: Currently the only JRE I have installed on the Mac is the Apple version which I understand has been deprecated.
Java EE Platform SDK 8u1 A free integrated development kit used to build, test, and deploy Java EE 8 applications. It includes : GlassFish Open Source Edition 5.0. 1.
JSR 366 – Java EE 8 Platform.
Run it at the command line.
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
For future reference a *.sh file is a shell script. You can inspect the shebang (#!
) at the first line of the file to see what shell should be used to interpret the script. In the case of the JavaEE 7 installer the shebang is #!/bin/sh
which indicates a Bourne compatible shell should be used.
Found a solution in this link:
https://apple.stackexchange.com/questions/63381/installing-glassfish-on-mountain-lion
Tried the command export DISPLAY=:0
and it skipped the "This Program requires..." message.
Hope this helps
glassfish-3.1.2.2-unix.sh
requires DISPLAY
environment variable to be set.
Please re-run after assigning an appropriate value to DISPLAY
.
export DISPLAY=:0
chmod +x java_ee_sdk-7-jdk7-macosx-x64-ml.sh
./java_ee_sdk-7-jdk7-macosx-x64-ml.sh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With