且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何为Mac OSX将Java 7 EE SDK下载为.sh文件安装

更新时间:2023-12-03 14:15:46

在命令行中运行它.

从安装手册中: Java平台,企业版7 SDK-安装说明

Solaris,Linux和Mac OS X系统:

  • 如有必要,授予执行 分发文件的权限:chmod + x ./ 分发文件名

  • If necessary, grant execute permissions to the distribution file: chmod +x ./ distribution-filename

在命令提示符下,键入:sh ./ 分发文件名

At the command prompt, type: sh ./ distribution-filename

*.sh文件是 shell脚本,以供将来参考.您可以在文件的第一行检查 shebang (#!)看看应该使用什么shell来解释脚本.对于JavaEE 7安装程序,shebang是#!/bin/sh,表示应该 Bourne兼容shell 被使用.

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.