Currently it is not possible to set the java executable globally. You have to open a modpack and change the java executable in the minecraft launcher each time you start the modpack. Please make it possible to set the java executable globally
As a workaround, creating a symlink (Junction in Windows) from CurseForge's runtime directory (.\curseforge\minecraft\Install\runtime\jre-x64) to your preferred Java install path seems to work.
Omg pls yes it's so needed. Performance of Java 11+ is so beautiful. Such a simple function has not been added for so long
As an additional thing for this, Minecraft runs quite badly on 32-bit Java, especially when modded. 32-bit Java is limited to a maximum of 1GB RAM, and yet it's the default one Windows will install if you simply search "install java". Any modpack with more than a handful of basic mods simply won't run on 32-bit Java.
As such, there should also be a warning message if a player tries to launch with a 32-bit executable, with a link to whichever 64-bit java variant Overwolf wishes to endorse. The CurseForge launcher should be default always prioritise a 64-bit installation if the user hasn't set any preference (currently 32-bit Oracle is preferred over a 64 bit AdoptOpenJDK, for example)
You won't be notified about changes to this idea.