SKCraft / Launcher

🚀 Distribute your Minecraft modpacks with a custom launcher
Other
613 stars 427 forks source link

WinRegistry does not support Java 17 (Broken Runtime selection) #494

Closed johnfriedrich closed 1 year ago

johnfriedrich commented 1 year ago

Runtime selection does not work under Java 17.

See: https://stackoverflow.com/questions/65630568/java-error-java-util-prefs-windowspreferences-windowsregopenkey

One replacement could be Advapi32Util see here: https://stackoverflow.com/questions/68815962/java-error-with-java16-java-lang-reflect-inaccessibleobjectexception

hedgehog1029 commented 1 year ago

Since #443 we've used JNA for registry access; so you likely need to update your launcher fork.

johnfriedrich commented 1 year ago

Did git pull and thought I was pulling upstream, but pulled my fork. Works now. Thanks for your work!