I’ve been wasting time playing Minecraft on my Debian box recently, and I wanted to try the new 1.3 snapshots. I found they couldn’t run with the same invocation as I had been using for the 1.2 release. I couldn’t find any help at all out on the web, so I had to puzzle it out myself. Hopefully these instructions will help someone else out there.
The 1.3 snapshots have a different main method and require some extra packages to be installed. In particular, the Lightweight Java Game Library (http://lwjgl.org/) needs to be installed.
On Debian, this is packaged:
apt-get install liblwjgl-java
The Debian package is missing something, though — more on that later.
You would also need the packages for OpenGL and OpenAL, but you probably already have those.
You need specify in your command line invocation where the shared libraries are that perform the JNI links to native code; the Debian place for this is
Finally, I have Oracle Java 7 installed in
/usr/local/lib/jvm. I don’t know if that’s really necessary, but others have recommended this. I’m not going to document how to do that now — Google is your friend. Maybe later.
Ok, given all that, here’s the script you’ve been waiting for:
java -Xmx1024M -Xms512M \
Note that the
LD_LIBRARY_PATH setting is needed for 64-bit OSes, but not 32-bit AFAIK. It’s relative to where you installed the jvm so adjust it as necessary.
But wait, there’s no sound! I really need to submit a bug on the Debian package, but here’s the workaround: download the binary package of LWJGL from http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/. You probably want the same version as the Debian package you installed.
Now uzip it and copy
native/linux/openal.so if you’re running a 32-bit system) to
/usr/lib/jni/openal.so . Yay, sound!