Skip to content

Instantly share code, notes, and snippets.

@nclsjstnn
Created November 4, 2012 20:21
Show Gist options
  • Save nclsjstnn/4013534 to your computer and use it in GitHub Desktop.
Save nclsjstnn/4013534 to your computer and use it in GitHub Desktop.
Making Minecraft use 64-bit Java on the Mac
#!/bin/bash
# Perform Backup of all the files
if [[ ! -d ~/Minecraft_Backups/ ]];then
echo "Creating backup directory ~/Minecraft_Backups/"
mkdir -p ~/Minecraft_Backups/
fi
tar -czf ~/Minecraft_Backups/`date +%Y%m%d`-backup.tgz /Applications/MinecraftSP.app
#Modify the Info.plist file for the new version of Java
if [[ -a /Applications/MinecraftSP.app/Contents/Info.plist ]];then
sed -i -e 's/1\.5\+/1.6+/' /Applications/MinecraftSP.app/Contents/Info.plist
sed -i -e '/I386/ c\
X86_64<\/string>\
I386<\/string>\
' /Applications/MinecraftSP.app/Contents/Info.plist
else
echo "Info.plist not found in /Applications/MinecraftSP.app/Contents/"
fi
cp /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub /Applications/MinecraftSP.app/Contents/MacOS/
@nclsjstnn
Copy link
Author

On Terminal run:

bash ./64bitminecraft.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment