docs: 在贡献文档中添加专门针对 macOS 的 JDK 版本检查命令 (#5165)

This commit is contained in:
Damon Lu
2026-02-01 16:19:33 +08:00
committed by GitHub
parent 0cc0b21d5f
commit c75bcd97b2
2 changed files with 26 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ OpenJDK 64-Bit Server VM (build 25+37-LTS, mixed mode, sharing)
</details>
<details>
<summary>Linux/macOS/FreeBSD</summary>
<summary>Linux/FreeBSD</summary>
```
> $JAVA_HOME/bin/java -version
@@ -39,6 +39,18 @@ OpenJDK 64-Bit Server VM (build 25+37-LTS, mixed mode, sharing)
</details>
<details>
<summary>macOS</summary>
```
> /usr/libexec/java_home --exec java -version
openjdk version "25" 2025-09-16 LTS
OpenJDK Runtime Environment (build 25+37-LTS)
OpenJDK 64-Bit Server VM (build 25+37-LTS, mixed mode, sharing)
```
</details>
### Get HMCL Source Code
- You can get the latest source code via [Git](https://git-scm.com/downloads):