player:tutorials:java:mac
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| player:tutorials:java:mac [2021/07/25 00:12] – solidblock | player:tutorials:java:mac [2023/12/27 12:34] (current) – old revision restored (2023/08/19 16:38) mineblock11 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== 更新/验证Java(macOS) ===== | + | ====== Install/Verify |
| - | 以下操作需要安装Java: | + | You will need Java installed if you want to: |
| - | * 运训当前版本的Fabric安装器 | + | * Run the ' |
| - | * 使用MultiMC、HMCL | + | * Install a Fabric server. [[player: |
| - | * 将默认的" | + | * Run Minecraft in MultiMC |
| + | * Run ATLauncher or Technic Launcher | ||
| + | * Change the default “JAVA EXECUTABLE” to other than the bundled Java runtime in a Minecraft Launcher | ||
| ---- | ---- | ||
| - | ** Minecraft 1.17以及更高版本使用Java 16。如果需要运行MC 1.17以上版本,需要下载Java 16而非Java 8。 ** | ||
| - | ---- | + | ===== Using Homebrew ===== |
| - | == 使用Homebrew == | + | Install |
| - | + | ||
| - | 安装[[https:// | + | |
| <code sh> | <code sh> | ||
| Line 20: | Line 19: | ||
| </ | </ | ||
| - | 然后安装Java 8(1.17以上的游戏版本需要Java 16): | + | Then, install the latest version of Java: |
| <code sh> | <code sh> | ||
| - | brew install openjdk@8 | + | brew install openjdk |
| </ | </ | ||
| + | ===== Manual ===== | ||
| - | == 手动== | + | ==== STEP 1: Verify if Java is already installed |
| - | + | ||
| - | === 第一步:验证Java已安装 | + | |
| - | 按F4,键入terminal以打开launchpad。 | + | Open launchpad by pressing |
| {{: | {{: | ||
| - | 或者按Command+空格键使用Spotlight打开。 | + | Alternatively, |
| {{: | {{: | ||
| - | 然后,键入如下命令: | + | Next, type in the following command. |
| {{: | {{: | ||
| - | 大多数较新的mac都提供java8,所以您应该看到这样的内容。 | + | Most newer macs ship Java 8, so you should see something like this. \\ |
| {{: | {{: | ||
| - | 如果没有,你可能需要找到旧版本的Java。 | + | If not, you might find an older version of java. \\ |
| {{: | {{: | ||
| - | 一些macs默认不提供Java,你可能会被提示从java.com安装。忽略,跳到下一步。 | + | Some macs do not ship java by default, and you will be prompted to install it from java.com. You can ignore it and continue to the next step. \\ |
| - | === 第二步:卸载旧的Java版本 | + | ==== STEP 2: Uninstall previous |
| - | 这一步不是必要的,但如果你需要卸载掉旧的Java版本,例如Java 5或6,可以使用[[https:// | + | This process is not necessary, but if you would like to uninstall an older version of java that came with your mac, for example, |
| - | === 第三步:安装Java === | + | ==== STEP 3: Install |
| - | 请在[[https://adoptopenjdk.net/ | + | To download the Java installer, go [[https://adoptium.net/ |
| - | 为了更好的兼容性,选择Java版本8和HotSpot JVM,然后下载JRE的.pkg安装程序。 | + | For better compatibility pick Version |
| {{: | {{: | ||
| {{: | {{: | ||
| - | 打开你刚刚下载的安装器。 | + | Open the installer that you just downloaded. |
| {{: | {{: | ||
| {{: | {{: | ||
| - | 单击“继续”按钮,直到进入“安装类型”页面。在这里,您可以更改安装盘。建议将java安装在与操作系统相同的磁盘上。 | + | Click on the Continue button until you reach the Installation Type page. Here, you can change the installation disk. It is recommended to install |
| - | 安装时,您应该会看到一个警告框,需要管理员权限才能安装。键入管理员的用户名和密码以继续。 | + | While installing, you should see an alert box. You will need administrator privileges to install. Type in an Administrator' |
| {{: | {{: | ||
| - | 如果一切正确无误,你应该会看到类似于这样的内容 | + | If you've done everything correctly, you should see something like this \\ |
| {{: | {{: | ||
| - | 完成安装,选择是否删除安装器然后回到第一步验证Java是否安装正确。\\ | + | Finish the installation, |
| {{: | {{: | ||
player/tutorials/java/mac.1627171931.txt.gz · Last modified: 2021/07/25 00:12 by solidblock