~
pwd
/Users/lion/
~ brew cask search java
==>
Removing legacy Tap
==>
Adding caskroom Tap
Cloning
into
'/usr/local/Library/Taps/caskroom/homebrew-cask'
...
remote:
Counting objects: 51450,
done
.
remote:
Compressing objects: 100% (64
/64
),
done
.
remote:
Total 51450 (delta 37), reused 5 (delta 2)
Receiving
objects: 100% (51450
/51450
),
16.61 MiB | 26.00 KiB
/s
,
done
.
Resolving
deltas: 100% (31783
/31783
),
done
.
Checking
connectivity...
done
.
Tapped
1 formula
==>
We need tomakeCaskroomforthe firsttimeat
/opt/homebrew-cask/Caskroom
==>
We
'll
set permissions properly so we won'
t
needsudointhe future
Password:
==>
Exact match
java
==>
Partial matches
eclipse-java
javafx-scene-builder
~ brew cask info java
java:
1.8.0_20
http:
//www
.oracle.com
/technetwork/java/javase/downloads/jdk8-downloads-2133151
.html
/opt/homebrew-cask/Caskroom/java/1
.8.0_20
(2 files, 210M)
https:
//github
.com
/caskroom/homebrew-cask/blob/master/Casks/eclipse-java
.rb
==>
Contents
JDK
8 Update 20.pkg (
install
)
==>
Caveats
This
Cask makes minor modifications to the JRE to prevent issues with
packaged
applications, as discussed here:
https:
//bugs
.eclipse.org
/bugs/show_bug
.cgi?
id
=411361
If
your Java application still asksforJRE installation, you might need
to
reboot orlogout
/login
.
Installing
this Cask means you have AGREED to the Oracle Binary Code
License
AgreementforJava SE at
http:
//www
.oracle.com
/technetwork/java/javase/terms/license/index
.html
~ brew caskinstalljava
==>
Caveats
This
Cask makes minor modifications to the JRE to prevent issues with
packaged
applications, as discussed here:
https:
//bugs
.eclipse.org
/bugs/show_bug
.cgi?
id
=411361
If
your Java application still asksforJRE installation, you might need
to
reboot orlogout
/login
.
Installing
this Cask means you have AGREED to the Oracle Binary Code
License
AgreementforJava SE at
http:
//www
.oracle.com
/technetwork/java/javase/terms/license/index
.html
==>
Downloading http:
//download
.oracle.com
/otn-pub/java/jdk/8u20-b26/jdk-8u20-ma
==>
Running installerforjava; your password may be necessary.
==>
Package installers may write to any location; options such as --appdir are ignored.
Password:
==>
installer: Package name is JDK 8 Update 20
==>
installer: Installing at base path /
==>
installer: Theinstallwas successful.
java
installed to
'/opt/homebrew-cask/Caskroom/java/1.8.0_20'
(2
files, 210M)
~ java -version
java
version
"1.8.0_20"
Java(TM)
SE Runtime Environment (build 1.8.0_20-b26)
Java
HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)