Home > Java > javaTutorial > body text

Detailed explanation of examples of configuring Java development environment with Homebrew

零下一度
Release: 2017-06-25 13:29:37
Original
2045 people have browsed it

Query java

brew cask search java
Copy after login

View version information

brew cask info java
Copy after login

Download and install JDK 8 from the official website

brew cask install java
Copy after login

You need to install JDK 7 or JDK 6, you can use homebrew-cask- versions:

brew tap caskroom/versions
brew cask install java6
Copy after login

Check

java -version
Copy after login

Tip: What is the difference between brew and brew cask?

Similarly, install eclipse

brew cask search eclipse
brew cask install eclipse-ide
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template