Skip to content

Commit 20f73ef

Browse files
authored
Update 02-Installing-Java-and-the-Book-Examples.md
1 parent cf91426 commit 20f73ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/book/02-Installing-Java-and-the-Book-Examples.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ Mac 系统自带的 Java 版本太老,为了确保本书的代码示例能被
111111
2. 在命令行下执行下面的命令来安装 Java。
112112

113113
```bash
114-
brew install java --cask
114+
brew install --cask java
115115
```
116116

117+
> 译者注:原有命令为 `brew cask install java`。原有命令已经被禁用。具体内容可看 https://github.com/LingCoder/OnJava8/issues/642
118+
117119
当以上安装都完成后,如果你有需要,可以使用游客账户来运行本书中的代码示例。
118120

119121
**Linux**

0 commit comments

Comments
 (0)