If you don’t want to use this type of package manager, type java in the terminal, and an automatic installation prompt will pop up. Of course, it is recommended to use homebrew and brew case to facilitate management of osx software and applications
Don’t try to trick newbies, okay?
Now mac does not come with jdk, you need to install it yourself
Someone else liked it, so I will help to the end.
The latest jdk is 1.8. It is recommended to download it from the Oracle official website. I disliked the slow speed and lost a Baidu disk. Link: http://pan.baidu.com/s/1o6sXgdO. Just download and install it directly.
In addition, if it involves jdk multi-version environment variable management, it is recommended to use jenv. The installation method can be found on Google. Thank you.
If it comes with it, you can open the console and enter: java -version to check the version number. You can also install the JDK yourself and configure the environment variables.
Macs no longer come with jdk, but the ones that came with it many years ago
However, when you need to use it, your mac will prompt you. Then click on more information to enter Apple’s official website to download
The version on Apple's official website is not the latest java version. If you want to download it, you can go to the java official website to download
To check whether java is installed, you only need to enter the java -version command in the terminal. If the corresponding version information appears, such as mine below, it means it exists. If not, it means it does not exist.
bashJava version "1.7.0_60-ea"
Java(TM) SE Runtime Environment (build 1.7.0_60-ea-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
does not exist or you want to install a higher version. The easiest way is to download the dmg file of jdk on mac and double-click to install it. jdk7 download address: https://jdk7.java.net/download.html, jdk8 download address: https://jdk8.java.net/download.html
For detailed process, please refer to: http://ixirong.com/2015/03/19/the-beginner-of-mac/
It is recommended to install with brew case
Install homebrew
Install brew case
Install Java
Another easy method
If you don’t want to use this type of package manager, type java in the terminal, and an automatic installation prompt will pop up. Of course, it is recommended to use homebrew and brew case to facilitate management of osx software and applications
Don’t try to trick newbies, okay?
Now mac does not come with jdk, you need to install it yourself
Someone else liked it, so I will help to the end.
The latest jdk is 1.8. It is recommended to download it from the Oracle official website. I disliked the slow speed and lost a Baidu disk. Link: http://pan.baidu.com/s/1o6sXgdO. Just download and install it directly.
In addition, if it involves jdk multi-version environment variable management, it is recommended to use jenv. The installation method can be found on Google. Thank you.
Very convenient.
Like it like crazy, you cool guys.
I brought it, but the one I brought with me is not easy to use, so I usually install a new one
If it comes with it, you can open the console and enter: java -version to check the version number. You can also install the JDK yourself and configure the environment variables.
I installed it myself
jdk8
. It is recommended to go to theoracle
official website to download the mac versionjdk
, which is relatively simple.It is recommended to install it yourself, I installed it myself, it is not difficult!
I just bought a macbook pro yesterday. After I installed it at home
webstorm
, I was prompted to installjdk
~~The mac air I bought in 2014 did not come with jdk. Need to install it yourself.
Macs no longer come with jdk, but the ones that came with it many years ago
However, when you need to use it, your mac will prompt you. Then click on more information to enter Apple’s official website to download
The version on Apple's official website is not the latest java version. If you want to download it, you can go to the java official website to download
To check whether java is installed, you only need to enter the
java -version
command in the terminal. If the corresponding version information appears, such as mine below, it means it exists. If not, it means it does not exist.does not exist or you want to install a higher version. The easiest way is to download the dmg file of jdk on mac and double-click to install it. jdk7 download address: https://jdk7.java.net/download.html, jdk8 download address: https://jdk8.java.net/download.html
For detailed process, please refer to: http://ixirong.com/2015/03/19/the-beginner-of-mac/