Minecraft in Ubuntu 10.04

Warning - Old Content

This post is quite old, and it might not apply anymore, or maybe there's a better way to do the same thing nowadays. Take with a big grain of salt.

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:

# 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  
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.