How do I download Java on my MacBook Pro?
So I'm trying to download the latest version of Java (JDK 22) x64 DMG Installer from oracle and I get through and Download it and it says Download success but I then try to run it in terminal to make sure it's downloaded and it's not showing up. After the download is successful, it disappears, and Terminal can't find it, and it's like it didn't download in the first place. Both me and my more tech-savvy friend have tried, and it's just not showing up. I have a Macbook Pro from mid-2012 that runs off Intel. I'm trying to download Java because I need it to run Curseforge for minecraft mods. If anyone has any suggestions or a better way to go about this, please help. Sorry if this is worded weirdly. I'm not good with tech, so I just don't know what's happening.
[Re-Titled by Moderator]