mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 11:55:52 -04:00
修复无法安装 zip 格式的 Java 压缩包的问题 (#3352)
This commit is contained in:
parent
1033389c38
commit
9f3fb7aff6
@ -151,7 +151,7 @@ public final class JavaManagementPage extends ListPageBase<JavaManagementPage.Ja
|
||||
|
||||
private void onInstallArchive(Path file) {
|
||||
Task.supplyAsync(() -> {
|
||||
try (ArchiveFileTree<?, ?> tree = TarFileTree.open(file)) {
|
||||
try (ArchiveFileTree<?, ?> tree = ArchiveFileTree.open(file)) {
|
||||
JavaInfo info = JavaInfo.fromArchive(tree);
|
||||
|
||||
if (!JavaManager.isCompatible(info.getPlatform()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user