I tried putting Java on my Mac easily

Overview

Install Java on your Mac. (Note: Homebrew is a prerequisite.)

environment

procedure

Java installation

Install using Homebrew.

brew update

brew update

When no version is specified (latest)

Install Adopt OpenJDK
brew cask install adoptopenjdk

If you want to specify the version

Add repository as formula to Homebrew

brew tap AdoptOpenJDK/openjdk

Install AdoptOpenJDK15

brew cask install adoptopenjdk15

Confirmation

It is OK when the java version is displayed with the following command.

java --version

reference

Recommended Posts

I tried putting Java on my Mac easily
I tried running Java on a Mac terminal
I can't install rails on my mac
Microservices 101-I tried putting Docker on Ubuntu-
I just want to write Java using Eclipse on my Mac
I tried using Junit on Mac VScode Maven
Install Java on Mac
I tried using Log4j2 on a Java EE server
I tried Drools (Java, InputStream)
I tried using Java REPL
I tried putting XcodeGen + SwiftPM
I tried metaprogramming in Java
I want to put the JDK on my Mac PC
I tried running WordPress with docker preview on M1 Mac.
I tried to interact with Java
I tried UDP communication with Java
I tried putting Domino11 in CentOS7
I tried the Java framework "Quarkus"
I tried using Java8 Stream API
I tried using JWT in Java
I tried to summarize Java learning (1)
I tried installing CentOS 8 on ESXi 6.7
I tried to summarize Java 8 now
I tried using Java memo LocalDate
Install Java development environment on Mac
I tried using GoogleHttpClient of Java
I tried to create a Spring MVC development environment on Mac
I tried to display the calendar on the Eclipse console using Java.
How to check Java installed on Mac
I tried using Elasticsearch API in Java
I tried running Docker on Windows Server 2019
I tried Cassandra's Object Mapper for Java
I tried to summarize Java lambda expressions
Java9 was included, so I tried jshell.
I installed Docker on my Raspberry Pi 3
Java development environment construction memo on Mac
I tried the new era in Java
How to switch Java versions on Mac
Build a Java development environment on Mac
I tried using OpenCV with Java + Tomcat
Hello World on Mac VS Code Java
I tried to build AdoptOpenjdk 11 on CentOS 7
I tried Google's entrance exam (unofficial) [java]
I built a Java EE environment on AWS and tried running a web application
Install java and android-sdk on Mac using homebrew
I tried to make Basic authentication with Java
Put Java 11 and spring tool suite on mac
Easily switch Java versions with alias on macOS
java I tried to break a simple block
I tried hitting a Java method from ABCL
I tried to implement deep learning in Java
I tried OmniSci on CentOS 7 + GeForce RTX 2080 Ti.
Switch between multiple versions of Java on Mac
I tried to output multiplication table in Java
I tried running Ansible on a Docker container
I touched on the new features of Java 15
I tried installing docker on an EC2 instance
I tried to create Alexa skill in Java
I tried to break a block with java (1)
I tried Getting Started with Gradle on Heroku
My DOM (Java)