Unfortunately, CurseForge doesn't actually allow setting the Java version Minecraft will use directly. Instead, each time you launch a modpack, you will have to follow the instructions below for the ...