Skip to content

Instantly share code, notes, and snippets.

@fwenzel
Created March 18, 2012 21:32
Show Gist options
  • Save fwenzel/2081650 to your computer and use it in GitHub Desktop.
Save fwenzel/2081650 to your computer and use it in GitHub Desktop.
Switch out Minecraft's Java Application Stub on OSX Lion and force 64bit mode.
#!/bin/sh
# Thank you, StackExchange: http://gaming.stackexchange.com/questions/44822/64-bit-java-not-recognized-in-minecraft
gzip /Applications/Minecraft.app/Contents/MacOS/JavaApplicationStub # save a backup
cp /System/Library/Frameworks/JavaVM.framework/Versions/Current/Resources/MacOS/JavaApplicationStub /Applications/Minecraft.app/Contents/MacOS/
/usr/libexec/PlistBuddy -c "Add :Java:JVMArchs:0 string 'x86_64'" /Applications/Minecraft.app/Contents/Info.plist
@randrus
Copy link

randrus commented Jun 27, 2013

Thanks for this!

I had trouble getting MagicLauncher to launch on 64-bit Lion - I found another recommendation to use a symbolic link to replace the JavaApplicationStub, but without updating the Info.plist I'd still be stuck scratching my head.

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