Since the mac has been renewed, a memo when preparing the java environment. Installed using brew for the purpose of familiarizing yourself with mac.
brew As you can see at https://brew.sh/index_ja.html. Xcode Command Line Tools can also be installed at the same time.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew -v
Homebrew 1.2.1
java Install the latest version of java using cask. At the moment it is java8. I'm not particular about it, so leave it as it is. After that, set environment variables.
$ brew cask install java
$ java -version
java version "1.8.0_131"
$ javac -version
javac 1.8.0_131
reference http://qiita.com/yanap/items/186d5bd1118f68f725d8 http://qiita.com/yu-iskw/items/79d9bddb77efaf2ca255
maven Install the latest maven with the following command.
$ brew install maven
$ mvn -v
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T04:39:06+09:00)
reference http://qiita.com/hoisjp/items/d5fd6d96235e2f2fdedb
that's all
Recommended Posts