Home >Java >javaTutorial >Detailed explanation of examples of configuring Java development environment with Homebrew
Query java
brew cask search java
View version information
brew cask info java
Download and install JDK 8 from the official website
brew cask install java
You need to install JDK 7 or JDK 6, you can use homebrew-cask- versions:
brew tap caskroom/versions brew cask install java6
Check
java -version

Tip: What is the difference between brew and brew cask?
Similarly, install eclipse
brew cask search eclipse brew cask install eclipse-ide
Check

Ok.
The above is the detailed content of Detailed explanation of examples of configuring Java development environment with Homebrew. For more information, please follow other related articles on the PHP Chinese website!