User Tools

Site Tools


player:tutorials:java:mac

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
player:tutorials:java:mac [2021/07/25 00:12] solidblockplayer:tutorials:java:mac [2023/12/27 12:34] (current) – old revision restored (2023/08/19 16:38) mineblock11
Line 1: Line 1:
-===== 更新/验证JavamacOS) =====+====== Install/Verify Java (macOS) ======
  
-以下操作需要安装Java+You will need Java installed if you want to:
  
-  * 运训当前版本的Fabric安装器 +  * Run the 'Universal Jar' Fabric Installer 
-  * 使用MultiMC、HMCL +  * Install a Fabric server. [[player:tutorials:install_server|CLI guide]] available 
-  * 将默认的"JAVA EXECUTABLE"改为非Minecraft Launcher安装位置绑定的Java运行环境+  * Run Minecraft in MultiMC or Prism Launcher 
 +  * Run ATLauncher or Technic Launcher 
 +  * Change the default “JAVA EXECUTABLE” to other than the bundled Java runtime in a Minecraft Launcher “Installation”
  
 ---- ----
-** Minecraft 1.17以及更高版本使用Java 16。如果需要运行MC 1.17以上版本,需要下载Java 16而非Java 8。 ** 
  
-----+===== Using Homebrew =====
  
-== 使用Homebrew == +Install [[https://brew.sh/|Homebrew]] if it is not installed already:
- +
-安装[[https://brew.sh/|Homebrew]],如果还没有安装的话:+
  
 <code sh> <code sh>
Line 20: Line 19:
 </code> </code>
  
-然后安装Java 8(1.17以上的游戏版本需要Java 16):+Then, install the latest version of Java:
  
 <code sh> <code sh>
-brew install openjdk@8+brew install openjdk
 </code> </code>
 +===== Manual =====
  
-== 手动== +==== STEP 1: Verify if Java is already installed =====
- +
-=== 第一步:验证Java已安装 ===+
  
-F4,键入terminal以打开launchpad。 \\+Open launchpad by pressing F4 and type in terminal\\
 {{:player:tutorials:java:launchpad.png?150|}} {{:player:tutorials:java:launchpad.png?150|}}
  
-或者按Command+空格键使用Spotlight打开。 \\+Alternatively, you could also do it with Spotlight by pressing Command + Space. \\
 {{:player:tutorials:java:spotlight.png?400|}} {{:player:tutorials:java:spotlight.png?400|}}
  
-然后,键入如下命令: \\+Next, type in the following command. \\
 {{:player:tutorials:java:java_command.png?200|}} \\ {{:player:tutorials:java:java_command.png?200|}} \\
  
-大多数较新的mac都提供java8,所以您应该看到这样的内容。 \\+Most newer macs ship Java 8, so you should see something like this. \\
 {{:player:tutorials:java:original_java8.png?400|}} \\  {{:player:tutorials:java:original_java8.png?400|}} \\ 
  
-如果没有,你可能需要找到旧版本的Java。 \\+If not, you might find an older version of java. \\
 {{:player:tutorials:java:original_java6.png?400|}} {{:player:tutorials:java:original_java6.png?400|}}
  
-一些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 versions ====
  
-这一步不是必要的,但如果你需要卸载掉旧的Java版本,例如Java 56,可以使用[[https://www.java.com/zh/download/uninstalltool.jsp|Java卸载工具]]将其卸载。+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 5 or 6, you can use the [[https://www.java.com/en/download/uninstalltool.jsp|Java Uninstall Tool]] provided by Oracle to help uninstall them.
  
-=== 第三步:安装Java ===+==== STEP 3: Install Java ====
  
-请在[[https://adoptopenjdk.net/releases.html|此处]]下载Java安装器。 \\+To download the Java installer, go [[https://adoptium.net/en-GB/temurin/releases/?os=mac&version=8|here]] \\
  
-为了更好的兼容性,选择Java版本8HotSpot JVM,然后下载JRE的.pkg安装程序。 \\+For better compatibility pick Version of Java and the HotSpot JVM, and then download the .pkg installer for the JRE. \\
 {{:player:tutorials:java:adoptopenjdk-mac.png?400|}} \\ {{:player:tutorials:java:adoptopenjdk-mac.png?400|}} \\
  
 {{:player:tutorials:java:pkg.png?200|}} \\ {{:player:tutorials:java:pkg.png?200|}} \\
  
-打开你刚刚下载的安装器。 \\+Open the installer that you just downloaded. \\
 {{:player:tutorials:java:installer.png?400|}} \\ {{:player:tutorials:java:installer.png?400|}} \\
 {{:player:tutorials:java:installation-start.png?400|}} {{:player:tutorials:java:installation-start.png?400|}}
  
-单击“继续”按钮,直到进入“安装类型”页面。在这里,您可以更改安装盘。建议将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 java on the same disk as your operating system.
  
-安装时,您应该会看到一个警告框,需要管理员权限才能安装。键入管理员的用户名和密码以继续。 \\+While installing, you should see an alert box. You will need administrator privileges to install. Type in an Administrator's username and password to continue. \\
 {{:player:tutorials:java:admin.png?400|}} \\ {{:player:tutorials:java:admin.png?400|}} \\
  
-如果一切正确无误,你应该会看到类似于这样的内容 \\+If you've done everything correctly, you should see something like this \\
 {{:player:tutorials:java:complete.png?400|}} \\ {{:player:tutorials:java:complete.png?400|}} \\
  
-完成安装,选择是否删除安装器然后回到第一步验证Java是否安装正确。\\+Finish the installation, choose whether to delete the installer or not and then go back to Step 1 to verify that Java was installed correctly.\\
 {{:player:tutorials:java:finished_java.png?400|}} {{:player:tutorials:java:finished_java.png?400|}}
player/tutorials/java/mac.1627171931.txt.gz · Last modified: 2021/07/25 00:12 by solidblock