Created
September 22, 2017 12:58
-
-
Save colebob9/b69c706ea868aa778e4f1b63effe744c to your computer and use it in GitHub Desktop.
Find Minecraft mac java runtime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find Java runtime | |
cd Minecraft.app | |
cd Contents/runtime/jre-x64/ | |
JAVAVERSION="$(ls -1v | head -1)" | |
echo "Latest Java runtime version (from Minecraft): ${JAVAVERSION}" | |
cd ${JAVAVERSION} | |
cd bin | |
JAVALOCATION="$(pwd)" | |
echo ${JAVALOCATION} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment