Help us understand the problem. What is going on with this article?

macにjava8をインストール

More than 3 years have passed since last update.

macにjava8をインストール

環境

現在の状態

Mac Book Air
OS X Yosemite

brew で install

現在はbrewで入れたjava7がインストールされている状態

java8 インストール 手順

1. brewを更新

brew update && brew cleanup

2. java8インストール

brew cask install java

3. インストールされてる全てのバージョンを確認

/usr/libexec/java_home -V
Matching Java Virtual Machines (2):
    1.8.0_74, x86_64:   "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home
    1.7.0_72, x86_64:   "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home

4. .bash_profileとか.zshrcに書く

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

5. 設定したバージョンを確認

java -version 

6. 消すとき

sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
yanap
Existing in essence or effect though not in actual fact or form. みかけや形はそのものではないが、本質あるいは効果としてはそのものであること
https://github.com/yanap
showroom
SHOWROOMは、アイドルやアーティストとインターネット上でコミュニケーションが楽しめるライブ動画ストリーミングプラットフォームです。
https://www.showroom-live.com/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした