HMCL-dev / HMCL-dev/HMCL

[Feature] 添加 Java 时可以选择一个目录, 在这个目录下递归搜索并添加所有 JVM

Open
#3,492 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
10.1k
Forks
934
Avg merge
1d 5h
Merged PRs (30d)
82

Description

描述 | Description

添加 Java 时可以选择一个目录, 在这个目录下递归搜索并添加所有 Java

要限制递归层次;
另外要排除掉 JDK 8- 的 jre 子目录,
现在使用 JDK 8 启动时识别到的 Java 也指向 jre 子目录中;

原因 | Reason

如果不是装在默认位置, 一般也是集中安装在某几个目录中, 添加 Java 更方便

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Java-add flow and inspect how JVM installations are currently discovered when a directory is selected. Implement bounded recursive search, exclude JDK 8 and older jre subdirectories, and verify that discovered entries point to the intended JVM locations rather than nested jre directories.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.