Hex-Dragon / PCL2

Plain Craft Launcher(我的世界启动器 PCL)的源代码,为支持社区研究而公开。
https://afdian.com/a/LTCat
Other
2.34k stars 178 forks source link

dragonwell-8 jdk 无法自动识别 #4006

Closed acaciachan closed 2 months ago

acaciachan commented 2 months ago

检查项

描述

Clip_2024-06-11_18-26-54 如图,zulu的和openJDK的可以被自动识别,但是dragonwell不行,我点过“自动搜索”了。 复现方法: https://dragonwell-jdk.io/#/index 下载dragonwell8 x86 64 windows版本; 解压之后放到 C:\Program Files\Java 文件夹里; 发现PCL启动器无法自动识别添加到列表里。

原因

这项优化让我可以更方便地选择。 如果没有这项优化,我每次都必须手动添加,让操作变得很麻烦。

allMagicNB commented 2 months ago

发日志

3gf8jv4dv commented 2 months ago

I just tested it and Dragonwell 11 can be easily searched, but Dragonwell 8 cannot.

By the way, if you put both versions in the same folder as the launcher, both can be searched.

allMagicNB commented 2 months ago

By the way, if you put both versions in the same folder as the launcher, both can be searched.

Yes, because PCL will scans Java in the same folder as itself.

acaciachan commented 2 months ago

Log1.txt

LTCatt commented 2 months ago

可以提供一下安装结束后 java 的完整路径吗? 我姑且先在检测关键词里加了个 dragon……

acaciachan commented 2 months ago

https://github.com/dragonwell-project/dragonwell8/releases https://dragonwell-jdk.io/#/index https://www.aliyun.com/product/dragonwell 看了一下阿里的java好像都是压缩包不是安装包,解压出来都是: dragonwell-21.0.2.0.2+13-GA dragonwell-17.0.11.0.12+9-GA dragonwell-11.0.23.20+9-ga dragonwell-8.19.20 这样的名字,关键词设置个dragonwell就行了吧 实在不行就弄个如果找到了java就在上级目录里查查别的文件夹有没有java.exe这样的思路之类的 比如在C:\Program Files\Java这个文件夹里发现了叫jdk-17和jdk-21有这些java,还有个陌生名字的文件夹也合理怀疑是java然后去找找有没有。 包括但不限于比如在启动器附近的文件夹查找,具体现在是怎么搞得我也不清楚了