Skip to content

Fix windows jvm detection - #392

Open
THOMASS47 wants to merge 2 commits into
GTNewHorizons:masterfrom
THOMASS47:fix/windows-jvm-detection
Open

THOMASS47 wants to merge 2 commits into
GTNewHorizons:masterfrom
THOMASS47:fix/windows-jvm-detection

Conversation

@THOMASS47

Copy link
Copy Markdown

Summary

JvmLocator.scanRegistryJvms used the key HKLM when calling getRegistrySubkeys and while reg.exe accepts it, it's output uses the full HKEY_LOCAL_MACHINE which caused getRegistrySubkeys to invalidate every result when checking if the output contained the prefix, resulting in no jvms being found on windows.
Changed the key to the full version so the check works correctly.

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant