Package Details: hmcl-bin 3.5.9.255-1

Git Clone URL: https://aur.archlinux.org/hmcl-bin.git (read-only, click to copy)
Package Base: hmcl-bin
Description: A Minecraft Launcher which is multi-functional, cross-platform and popular.
Upstream URL: https://github.com/huanghongxun/HMCL
Licenses: GPL3
Conflicts: hmcl
Provides: hmcl
Submitter: so1ar
Maintainer: TTsdzb
Last Packager: TTsdzb
Votes: 10
Popularity: 0.068939
First Submitted: 2021-10-04 12:37 (UTC)
Last Updated: 2024-10-05 16:05 (UTC)

Dependencies (3)

Required by (0)

Sources (5)

Latest Comments

1 2 3 4 Next › Last »

TTsdzb commented on 2024-05-26 15:32 (UTC) (edited on 2024-05-26 15:34 (UTC) by TTsdzb)

@SCGM java-openjfx 不能运行可能是上游问题。我用 java-openjfx-bin(版本 22-2)提供该依赖,依然可以正常运行。

部分用户可能已经安装了能提供 openjfx 的环境,如果更改此依赖,他们可能要安装额外的 Java,这样会比较麻烦。

SCGM commented on 2024-05-20 09:13 (UTC)

应该把依赖和脚本里的java-openjfx改成java17-openjfx,否则不能运行

HinataAoi commented on 2024-03-15 04:10 (UTC)

@c1trus 我和你一样,因为hmcl-launch-script里面写的有问题,当找到本地的javafx时的启动指令变成了用默认java调用java-openjfx.可以手动改一下 感觉不用直接移除openjfx的依赖,改成可选依赖就行

c1trus commented on 2024-03-13 03:08 (UTC)

考虑到现在 hmcl 对于缺失 javafx 的情况会自动下载所需的资源,我认为直接去除 java-openjfx 并不考虑任何搜索是一个可行的措施 但是 JAVA_HOME 和 java 必须配套,请至少 export PATH="$JAVA_HOME/bin:$PATH"

c1trus commented on 2024-03-13 02:53 (UTC)

默认的 java 与找到的包含 java-openjfx 的 java 不一致导致问题。

❯ which java
/usr/bin/java
❯ pacman -Qo java
/usr/bin/java 由 java-runtime-common 3-5 所拥有
❯ pacman -Ql java-openjfx | grep javafx | head -n 1 | cut -d / -f 5
liberica-jdk-full
❯ hmcl-bin
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.base not found
❯ /usr/lib/jvm/liberica-jdk-full/bin/java -jar /usr/share/java/hmcl-bin/hmcl-bin.jar
[10:48:47] [org.jackhuang.hmcl.Launcher.main/INFO] *** HMCL 3.5.6.241 ***
......(正常启动界面)

如果说通过设置 JAVA_HOME 本应当可以正确搜索,那么版本不一致可能是问题所在

❯ java -version
java version "17.0.10" 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.10+11-LTS-240, mixed mode, sharing)
❯ /usr/lib/jvm/liberica-jdk-full/bin/java -version
openjdk version "21.0.2" 2024-01-16 LTS
OpenJDK Runtime Environment (build 21.0.2+14-LTS)
OpenJDK 64-Bit Server VM (build 21.0.2+14-LTS, mixed mode, sharing)

Eeviriyi commented on 2024-03-11 01:31 (UTC)

please update the sha256sum

TTsdzb commented on 2024-03-10 02:15 (UTC)

hmcl-launch-script 的 sha256sum 不正确导致近两个版本均无法自动构建,请您修复一下,感谢

yataro commented on 2024-03-06 16:29 (UTC)

Could you fix the hashsums?

yataro commented on 2024-03-06 11:55 (UTC)

==> Validating source files with sha256sums...
    hmcl.desktop ... Passed
    hmcl-launch-script ... FAILED
    craft_table.png ... Passed
    LICENSE ... Passed
    hmcl-bin-3.5.6.239-1.jar ... Passed
==> ERROR: One or more files did not pass the validity check!

HinataAoi commented on 2024-02-25 14:00 (UTC) (edited on 2024-02-25 14:01 (UTC) by HinataAoi)

另外我之前提到的这个问题还是在,麻烦一并修改一下.把当时的内容粘贴过来了:

我这边出现了问题,因为我这边默认调用的jre是zulu-21-bin.而启动脚本最后一行--module-path指定的却是pacman查询的java-openjfx依赖的提供者的lib目录,在我这里就是指向了zulu-jre-fx-bin的lib目录.

导致的情况就是zulu-21-bin在尝试使用zulu-jre-fx-bin的lib目录

我不懂java,不清楚jre不同版本间是否能用彼此的lib目录,但我这里确实出现了问题.会提示"Module javafx.base not found"

也许可以把最后一行里的java改成"${JAVA_HOME}"/bin/java?

另外hmcl.desktop里抄错抄成exec=hmcl-stable-bin了