mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2025-04-20 17:24:01 +08:00
64 lines
1.8 KiB
Markdown
64 lines
1.8 KiB
Markdown
---
|
||
title: "下载 HMCL 和 Minecraft 依赖的 Java"
|
||
permalink: /downloads/linux/loongarch64.html
|
||
date: 2023-09-05 14:00:00 +0800
|
||
categories: Java 下载
|
||
toc: false
|
||
---
|
||
|
||

|
||
|
||
龙芯平台存在 “**新世界**” 和 “**旧世界**” 两个 ABI,不同 ABI 的 Java 暂时互不兼容。
|
||
|
||
请在终端中输入 `uname -r` 命令查看 Linux 内核版本。如果你的内核版本为 4.x 请下载[旧世界](#旧世界) Java,否则请下载[新世界](#新世界) Java。
|
||
|
||
## 旧世界
|
||
|
||
如果你正在使用旧世界龙芯系统,请前往龙芯开源社区下载龙芯 Java 17。
|
||
|
||
[点击此处前往下载页面](https://www.loongnix.cn/zh/api/java/downloads-jdk17/index.html)
|
||
|
||
## 新世界
|
||
|
||
如果你正在使用新世界龙芯系统,请使用系统的包管理器安装 Java 17。
|
||
|
||
**Loongnix**/Deepin/Debian/Ubuntu:
|
||
|
||
```
|
||
sudo apt install openjdk-17-jre
|
||
```
|
||
|
||
Arch Linux:
|
||
|
||
```
|
||
sudo pacman -S jre17-openjdk
|
||
```
|
||
|
||
---
|
||
|
||
There are two ABIs on Loongson platform: **New World** and **Old World**. Java with different ABIs are not compatible with each other for the time being.
|
||
|
||
Please execute `uname -r` in terminal to check the Linux kernel version. Please download [Old World](#old-world) Java if your kernel version is 4.x, otherwise please download [New World](#new-world) Java.
|
||
|
||
## Old World
|
||
|
||
If you are using an Old World Loongson system, please go to Loongson Open Source Community to download Loongson Java 17.
|
||
|
||
[Click here to download](https://www.loongnix.cn/zh/api/java/downloads-jdk17/index.html)
|
||
|
||
## New World
|
||
|
||
If you are using a New World Loongson system, please install Java 17 by using system's package manager.
|
||
|
||
**Loongnix**/Deepin/Debian/Ubuntu:
|
||
|
||
```
|
||
sudo apt install openjdk-17-jre
|
||
```
|
||
|
||
Arch Linux:
|
||
|
||
```
|
||
sudo pacman -S jre17-openjdk
|
||
```
|