mac 安装java8


brew cask info java
java: 11.0.2,9
https://jdk.java.net/
Not installed
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/java.rb
==> Name
OpenJDK Java Development Kit
==> Artifacts
jdk-11.0.2.jdk -> /Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk (Generic Artifact)

brew search java
==> Formulae
app-engine-java            javarepl                   libreadline-java
google-java-format         jslint4java


==> Casks
charles-applejava                        java8
eclipse-java                             netbeans-java-ee
eclipse-javascript                       netbeans-java-se
java                                     oracle-jdk-javadoc
java-beta                                yourkit-java-profiler
java6                                    homebrew/cask-versions/java-beta
brew cask install java8
Updating Homebrew...
^C==> Caveats
Installing java8 means you have AGREED to the license at
  https://www.oracle.com/technetwork/java/javase/terms/license/javase-license.html


==> Satisfying dependencies
==> Downloading https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4
==> Downloading from https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'java8'.
==> Installing Cask java8
==> Running installer for java8; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are i
Password:
installer: Package name is JDK 8 Update 202
installer: Installing at base path /
installer: The install was successful.
🍺  java8 was successfully installed!

java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

此时的Password 是你电脑的密码 
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页