Open the Terminal application. Copy and paste each of the following commands into Terminal and hit Enter.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew cask install java
Ensure Java was intalled correctly
java -version
brew install tomcat@8.0
brew install git
Ensure Git was installed correctly
git --version
brew install maven
Ensure Maven was installed correctly
mvn -version
brew install postgresql
Ensure PostgreSQL was installed correctly
psql --version
Here is the link to download IntelliJ (Ultimate Edition).