install java 11 mac

https:/‮/‬www.lautturi.com
install java 11 mac

To install Java 11 on a Mac, you can follow these steps:

  1. Download the Java 11 JDK for Mac from the Oracle website.
  2. Open the downloaded DMG file and double-click the JDK 11 package to launch the installer.
  3. Follow the prompts to install Java 11.

Alternatively, you can install Java 11 using Homebrew:

  1. Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Install Java 11:
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk11
  1. Set the default Java version to Java 11:
export JAVA_HOME=$(/usr/libexec/java_home -v 11)
  1. Verify that Java 11 is installed and set as the default:
java -version

Note that these steps will install the OpenJDK version of Java 11. If you prefer to install the Oracle version of Java 11, you can download it from the Oracle website.

For more information on installing Java on a Mac, you can refer to the Oracle documentation or the Homebrew documentation.

Created Time:2017-11-01 22:29:52  Author:lautturi