brew is one of Mac's package management systems. You can install various software with one command, Easy to upgrade and uninstall
Terminal.app
%> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install java8 immediately using brew
Terminal.app
%> brew install Caskroom/cask/java
jenv is software that can manage multiple java versions Put it in for the time being
Terminal.app
%> echo -e 'if which jenv > /dev/null; then \n export JENV_ROOT=/usr/local/var/jenv \n eval "$(jenv init -)" \nfi' >> ~/.bashrc
%> source ~/.bashrc
You can see all the java currently installed with jenv versions. Java, which is installed by default on Mac, is used.
Terminal.app
%> jenv versions
* system
1.8
1.8.0.112
oracle64-1.8.0.112
Changed java used in system to 1.8.0.112
Terminal.app
%> jenv global 1.8.0.112
Verification!
Terminal.app
%> jenv versions
system
1.8
* 1.8.0.112
oracle64-1.8.0.112
Include an integrated development environment that is essential for java development
Terminal.app
brew cask install eclipse-jee
This is the end for the time being. Tired
Recommended Posts