java - mac笔记本自带jdk吗?
伊谢尔伦
伊谢尔伦 2017-04-17 13:54:39
0
12
1470

看到/usr/bin/目录下有javac,javah,不知道是不是说不用自己安装jdk1.7了?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(12)
左手右手慢动作

It is recommended to install with brew case

Install homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install brew case

brew tap phinze/homebrew-cask
brew install brew-cask

Install Java

brew cask search java
brew cask 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 the oracle official website to download the mac version jdk, 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 install jdk~~

小葫芦

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

Peter_Zhu

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/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template