It is recommended that Apple install MacOS missing Package Manager->homebrew loading and unloading software is very convenient
What is homebrew? Homebrew is the easiest and most flexible the "to install" the UNIX tools Apple didn ' t include with OS x. The official explanation is very clear, Homebrew is a package manager that installs some UNIX tools (such as the famous wget) that are not available on your Mac for OS X.
Homebrew installs all of these tools into the/usr/local/cellar directory and creates symbolic links in/usr/local/bin.
Homebrew official website https://brew.sh/index_zh-cn.html
1. Open the Mac terminal input/usr/bin/ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
Download wait can generally not be wrong the middle need to enter the system password
Unload input If an error occurs
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
and re-install
After the installation is complete, you will be prompted to verify that the installation was successful or not
Enter brew doctor to indicate that it is already running
2. Installing the Java JDK
2.1 Querying Java
brew cask search java
2.2 Viewing version information
brew cask info java2.3从官网下载并安装 JDK 最新版本 现在是9 brew cask install java需要安装 JDK 7 或者 JDK 6,可以使用homebrew-cask-versions:brew tap caskroom/versionsbrew cask install java7 安装完成后使用 java -version 验证环境变量(自动配置好的)
3. Install the development tools eclipse
Brew Cask Install eclipse-ide (with cask download is the app graphical interface form)
MAC Configuration Java Development environment