Install java and maven using brew on new mac

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

Install java and maven using brew on new mac
Install java and android-sdk on Mac using homebrew
Install Java 9 on windows 10 and CentOS 7
Install Java development environment on Mac
Using multiple versions of Java with Brew on Mac + jEnv
Download and install Eclipse (Java) (Mac version)
Steps to install Maven on Mac and use it in Eclipse
I tried using Junit on Mac VScode Maven
Put Java 11 and spring tool suite on mac
Install SonarQube on Mac and challenge source analysis
Install gradle on mac
Install openjdk11 on mac
Install OpenJDK 8 on mac
Create a Java development environment using jenv on Mac
Compile with Java 6 and test with Java 11 while running Maven on Java 8
Install Eclipse on Mac and translate it into Japanese
Install OpenJDK7 (JAVA) on ubuntu 14.04
Install Java on WSL Ubuntu 18.04
Install tomcat + eclipse on mac
Install java 1.8.0 on Amazon linux2
Install Java and Tomcat with Ansible
Install the memcached plugin on MySQL and access it from Java
Enable Openjdk10 and maven on CentOS
Install Java with zip on Windows
Try using Redmine on Mac docker
I just want to write Java using Eclipse on my Mac
Install Ruby 2.5 on CentOS 7 using SCL
Install Java Open JDK 8 on CentOS 7
Installed on Lombok Mac (using STS)
Java 9 new features and sample code
Install and configure jenv on macOS
Let's make a LAN communication application Part 1 New project creation using Maven and Java entry point
Enable Java 8 and Java 11 SDKs on Ubuntu
Notes on Java path and Package
Develop gRPC on Windows + Java 7 + Maven 2
Install Ubuntu Server 20.04 in VirtualBox on Mac and connect with SSH
Installing and using Ansible on Ubuntu 16.04
Install Docker on Ubuntu and set up remote connection using tls
How to check Java installed on Mac
If you can't install java on Catalina
Install docker and docker-compose on Alpine Linux
Using JupyterLab + Java with WSL on Windows 10
Install OpenJDK (Java) on the latest Ubuntu
How to install Eclipse (Photon) on Mac
Notes on operators using Java ~ String type ~
Sobel filter using OpenCV on Android (Java)
I can't install rails on my mac
How to switch Java versions on Mac
What is Java and Development Environment (MAC)
Build a Java development environment on Mac
Install Java8 with Yum on Amazon Linux
Hello World on Mac VS Code Java
Java and Derby integration using JDBC (using NetBeans)
[Mac] Install Java in Visual Studio Code
Install Docker and create Java runtime environment
Create an ARM-cpu environment with qemu on mac and run java [Result → Failure]
Try using Firebase Cloud Functions on Android (Java)
Create API using Retrofit2, Okhttp3 and Gson (Java)
I tried putting Java on my Mac easily
Build and install Wireshark Development Release (3.3.1) on Ubuntu
Install Docker on Raspberry Pi 4 and Raspberry Pi OS 64bit