What is the default Java executable file on Mac?
When I click the 3 dots next to an installation of Minecraft (in my case 1.18.1), and click Advanced
, it doesn't mention anything in the Executable
path under Java Settings (Advanced)
.
So my question is: What's the default Java executable on Mac for Minecraft?
Best Answer
Minecraft does not by default use any externally-installed Java installation on Mac. Instead, when you first run it, it downloads its own copy of the Java runtime. The java
executable itself is at:
~/Library/Application Support/minecraft/runtime/java-runtime-beta/mac-os/java-runtime-beta/jre.bundle/Contents/Home/bin/java
where ~ is the user account's home directory. The Library directory is hidden by default by Finder to help users avoid making changes which could break their programs, but you can get to it by selecting "Go > Go to Folder…" from the Finder's menu bar and entering "~/Library" in the box that appears.
If you have a hard time finding the runtime, just launch Minecraft (the game itself, not just the launcher), then in the macOS dock, find the "java" icon in the Dock (the list of icons which usually runs horizontally at the bottom of the screen - try using Command-Tab to switch to the Finder and then move your pointer all the way to the bottom of the screen if you don't see it), and Control-Click (or right-click) it and select "Options > Show in Finder" from the contextual menu that appears.
Incidentally, if what you're trying to do is get Minecraft to use an M1-optimized build of Java for better performance, the instructions in this tutorial worked great for me.
Pictures about "What is the default Java executable file on Mac?"
Where is Java installed on my Mac?
In macOS, the JDK installation path is /Library/Java/JavaVirtualMachines/jdk-10. jdk/Contents/Home . The root directory of the JDK software installation.How do I know if Java is installed on Mac?
Type terminal in the search bar and open it by clicking on the icon in the search results. 3. Once in the command line, run the command: java -version . The output should display the Java version installed on your MacOS.How do I download JRE on Mac?
Installing the JRE on macOSDoes Mac come with Java?
How do I know if I have Java installed on my Mac? Mac OS X 10.6 and below: Apple's Java comes pre-installed with your Mac OS. Mac OS X 10.7 (Lion) and above: Java is not pre-installed with Mac OS X versions 10.7 and above. To get the latest Java from Oracle, you will need Mac OS X 10.7.How to Install Java on Mac | Install Java JDK on macOS
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Sora Shimazaki, Andrea Piacquadio, Christina Morillo, Sora Shimazaki