Minecraft in Ubuntu 10.04


Minecraft is a great game, and supports a linux client.  Unfortunately, it doesn’t actually ship with any sort of launcher script, just a .jar file.  Since getting java to run anything is a pain, here’s my launcher script:

#!/bin/bash
# from all appearances, this works with ubuntu openjvm packages, and with the Minecraft.jar file located
# update this to be the directory with the Minecraft.jar file
MINECRAFT_JAR_DIR=~/local/games/minecraft
java -Xms800M -Xmx800M -classpath .:lib/jinput.jar:lib/lwjgl.jar:lib/lwjgl_util.jar:lib/wom.jar:$MINECRAFT_JAR_DIR -Djava.library.path=native/linux -jar $MINECRAFT_JAR_DIR/Minecraft.jar Main

I had one issue with keyboard input not working after the login screen, which I resolved by uninstalling the ibus-anthy package (but most people won’t have that).

Save file directories can be copied over directly from windows.